SkilldexAll articles

Keep cursors opaque when skills list records

Carry query scope forward and detect incomplete results instead of guessing at token structure.

A continuation token is a handle for a particular list operation. If an agent tries to parse or manufacture it, the workflow can appear to complete while skipping records or reading a different collection. Tool responses can make the intended request pattern easy to follow.

Bind each token to its query

Preserve filters and other query-defining arguments according to the service contract. If a user changes the search scope, restart from the first page. Treat the token itself as data and keep it consistent with the provider's expiration and authorization rules. Use the current identity at each page request.

Define what complete means

A page with zero returned rows can still have a continuation token. A capped listing can also be sufficient when the user only requested five examples. Let the response state the scope that was completed, including time or item limits when an exhaustive listing was requested but could not finish.

Surface progress failures

Keep a bounded loop and track seen tokens to detect a provider returning the same token repeatedly. Deduplicate stable record IDs where the list contract permits concurrent changes. For a count that never stabilized, describe the result as partial and retain enough context to retry safely.

Sources