Skip to main content
HTTP status: 400

Error message

When this error occurs

POST /agents/conversations/{id}/runs with payload.kind = tool_outputs requires a prior assistant turn carrying the tool_use blocks that the outputs reference. This error means the conversation has none yet:
  • It’s a brand-new conversation with no runs at all.
  • All prior runs failed before producing an assistant turn.
When the conversation has an assistant turn that isn’t waiting on any tool calls, you get No Pending Tool Calls instead.

How to fix

If you intended to start a new conversational turn from the user side, change the payload to {"kind": "user_message", "text": "..."} — tool_outputs is exclusively for resuming a requires_action run. If you intended to resume a paused run, double-check the conversation id — tool_outputs is posted onto the same conversation that contained the requires_action run, not a fresh one.