Unclear The exact condition that ends a run with this reason is not stated.
What
When Claude Code reports why a run ended, it can now give the reason malformed_tool_use_exhausted. A tool call is a request from the model to use one of Claude Code's tools, such as reading a file. A malformed one is a request that is badly formed and cannot be carried out. This reason covers a case that was not reported separately before.
Why
It points to a distinct stop reason for when the model keeps producing tool calls that cannot be used, so a run that ends this way can be told apart from other endings.
Names in the bundlemalformed_tool_use_exhausted
Documented inclaude-code/agent-sdk/typescript
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The exact condition that ends a run with this reason is not stated.