{"version":"2.1.327","anchor":"tool-listing-gains-cursor-pagination","canonical_anchor":"tool-listing-gains-cursor-pagination","heading":"ListAgents output is now split into pages with a cursor","tier":"notice","area":"Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/tool-listing-gains-cursor-pagination","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### ListAgents output is now split into pages with a cursor\n\nLong agent listings from the ListAgents tool now come in pages, with a cursor field to fetch the next page and clear notes for bad cursors\n\n**Unclear.** It is not stated which tool gained the cursor.\n\n**What**\n\n`ListAgents` is the tool Claude uses to see which agents it can message: subagents it started, teammates, other local Claude sessions and so on. It used to return everything as one listing. When that listing is larger than a size limit, it now comes back in pages.\n\n- A tool schema gains a cursor field. A cursor is a marker that says where the next page starts. The field takes the cursor the last line of a long listing gave; leaving it out lists from the start.\n\n- Each call issues its own cursor, and the listing prints hints of the form `call again with ... cursor=` so Claude knows how to get the next page.\n\n- A cursor this session did not issue, or one that has expired, returns a `cursor_not_valid` note saying no agents were looked up and to call again with no cursor to list from the start.\n\n- The final page says `nothing more to list`.\n\nThe stock `ListAgents` description captured under this release is 927 characters, and its wording moved since the previous release.\n\n**Why**\n\nIn practice, a long list of agents or sessions no longer has to fit into a single tool result. Claude now reads it a page at a time, so with many agents it may take several calls to see them all.\n\n- Area: Tools\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}