← MCP Catalog

poll_agent_run

Poll an agent run without flooding model context. `compact` (default) returns status, final text, useful assistant messages, and small tool/command counters while omitting thinking, signatures, init metadata, prompts, and tool-result bodies. `status` returns only lifecycle fields and final text. `raw` returns the original JSONL for debugging. Reuse `next_offset` on subsequent compact or raw polls.

MCPAgent Control AuthorizationOAuth
Read only

Parameters

run_idstring · required

offsetinteger · default 0

max_bytesinteger · default 200000

modestring · default "compact"

max_messagesinteger · default 5

max_activityinteger · default 20

max_text_charsinteger · default 12000