Collect Codex Agent Results
agent_resultCollect worker results with status, completion, final message, pending approvals, and token spend. Call with no arguments to sweep all workers at once.
Instructions
Collect worker results. Returns immediately with a lean report per worker: status, whether it is done, its final message, any approval it is blocked on, and its token spend. Call with no arguments to sweep every worker at once — this is the normal way to check on a fleet, and it costs one call no matter how many workers are running. Use this rather than agent_status unless you need one worker's plan, diff, or event detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | No | Single-worker shorthand for agentIds. | |
| agentIds | No | Restrict to these workers. Omit for every non-archived worker. | |
| includeMessage | No | Default true. Set false for a cheap progress sweep that omits worker output. |