Error message
When this error occurs
The platform runs some of the model’s tool calls itself and leaves the rest to you:- MCP calls (
{alias}-{tool}) and harness tools (bash,file_read,file_write,sleep,job_monitor,wait_for) run on the platform, which stores their results. They never appear inpending_tool_calls. - Caller-declared tools from
tools[]pause the run atrequires_action, and you post their outputs astool_outputson the next run.
tool_outputs[].tool_use_id is on the latest assistant turn but isn’t in the
pending_tool_calls of the run that wrote it. There’s nothing for you to contribute.
How to fix
Copy the ids from thepending_tool_calls list of GET /agents/runs/{id} rather than deriving
them from the message stream or from the tool names.
