For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pagination and Large Result Sets

List and search actions can return only one page of results. Use the action’s pagination fields when you need the complete result set.

Use the continuation method exposed by the action

Provider-neutral pseudocode. Replace records, has_more, and continuation with the selected action’s actual output fields. Some actions use offsets or links instead of cursors. Keep filtering and ordering consistent.

Copy the example
page = fetch_first_page()
while True:
    process_records(page.records)
    if not page.has_more:
        break
    page = fetch_next_page(page.continuation)

Before you begin

An action that exposes pagination and a defined stopping condition.

Key concepts

Term
Definition

Pagination

Retrieval of a collection through multiple pages. Use the continuation method exposed by the selected operation.

Cursor

A continuation value returned for the next page on cursor-based endpoints. Treat it as opaque; do not manufacture it from a display name or record count.

Offset

A numeric starting position used by some list operations. Keep filtering and ordering consistent while moving through pages.

Resource ID

A stable identifier for a project, file, connection, or other resource. Use the required ID type; matching display names do not make IDs interchangeable.

Configuration options

Option
Purpose
Behavior

Page size

The maximum number of records requested or processed in one page.

It is not a guarantee that all records in the collection are included.

Retrieve additional results

  1. Inspect the page size and continuation fields in the action schema.

  2. Process the returned page and request the next page using its token or offset.

  3. Stop when the response indicates that no further page is available.

The workflow processes the required records across the returned pages.

Behavior and limitations

Pagination styles differ by provider and action. A page size is not a total-result guarantee. Do not invent a cursor field for an action that does not expose one. Large collections may require multiple runs or a smaller scope. Preserve record IDs to detect duplicates when the provider’s data changes during collection.

Connection Ownership, Sharing, and Permissions

Was this helpful?