Page through statements
Keep the project, run, entity selection, filters, and text settings the same on each call. After a successful page, copydata.cursor unchanged into the next request’s cursor argument. Stop if the server returns no next cursor. If a cursor repeats, stop and surface the issue instead of looping indefinitely.
Multiple entities selects statements mentioning any of those entities. It does not require every entity to appear together. Use get_comention_network for co-mention counts.
Count the right thing
For queries,n_total_run is the total that ran, n_available is the matching selection, and n_returned is the number returned. Do not report a 50-row sample as “50 queries ran.” If a query selection is larger than the tool’s limit, it is truncated. Do not invent an offset parameter to fetch the rest.
A statement is a returned unit of answer text, such as a paragraph, list item, table row, or heading. It can contain more than one sentence. Statement counts, raw term occurrences, and whole-response counts therefore need different labels.
Request full response text only when you need it. max_text_chars is limited to 50–2000, so even an included response can be shortened. Preserve the source reference when quoting evidence.
Next: Errors and retries.