tool_refused
The agent program tried something its run may not do (a tool on a text-only run, a step the sandbox denied), so the run was stopped. What it said until then is in the result.
What to do
Act on the code, not the message: tell the owner what failed and include the message.