property DiscoveryCriteria.max_pages

How many listing pages to read at most, supplied by the host.

An extension that pages MUST respect it rather than walking the whole result set: a tag search can run to tens of thousands of works. Reading only the first page is not enough either — an existing work edited to carry a tag enters the result set in the middle, ordered by its original publication date, so it never appears on page one.

Type

number

Usage

import { type DiscoveryCriteria } from "crates/lanrurugi-plugin/dispatcher/plugin-sdk.ts";