HTTP status: 400Documentation Index
Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
Use this file to discover all available pages before exploring further.
Error message
When this error occurs
POST /agents/conversations/{id}/runs with payload.kind = tool_outputs was called, and at
least one of the outputs[].tool_use_id values does not match any tool_use block on the
conversation’s latest assistant turn.
Common causes:
- Hand-edited or copy-pasted
tool_use_idwith a typo. - Resuming an old
requires_actionrun after the conversation has already advanced past it (the latest assistant turn is now different). - Posting
tool_outputsto a conversation whose previous run terminated ascompletedrather thanrequires_action(in which case there’s nothing pending).
How to fix
GET /agents/runs/{run_id}for the run that returnedrequires_action. Use thepending_tool_calls[].tool_use_idvalues from there verbatim.- If you’ve lost the run id, walk back via
GET /agents/conversations/{id}/messages?since=0and look for the latest assistant turn — thetool_useblocks within carry the ids you need. - Refetch the conversation’s
versionand pass it asexpected_versionto avoid posting onto a stale head.

