AI: "Tool call not found" frequently occurs in recent versions #37653
Replies: 10 comments 3 replies
-
You said In general using Anthropic models via OpenAI API can have some issues as the provider/proxy/intermediary needs to adapt requests between the two APIs for everything to work properly. This is very much provider specific (e.g. OpenRouter does pretty well) and your experience will depend heavily on which of those corner cases are being adjusted for.
That sounds super odd. Please contact [email protected] and include your github username so we can look into it. |
Beta Was this translation helpful? Give feedback.
-
The frequent unknown tool calls also happen frequently with deepseek3.1 with inputs like:
|
Beta Was this translation helpful? Give feedback.
-
Seems it is solved by: #38207 : Create failed tool call entries for missing tools #38207 |
Beta Was this translation helpful? Give feedback.
-
still not solved. i am only getting this error with claude sonnet 4.5 (though i use it through github copilot only).
some tool call is failing. and when i try to expand the tool call details, no information is shown on what tool was it. so there is no way to disable that specific tool call: ![]() My environment: Zed 0.206.6 |
Beta Was this translation helpful? Give feedback.
-
Same error here:
Also using Claude Sonnet 4.5 via Copilot. |
Beta Was this translation helpful? Give feedback.
-
I'm using Sonnet 4.5 though Copilot and I also get this quite frequently.
|
Beta Was this translation helpful? Give feedback.
-
I've been having this over the past few weeks, but today's error is just so annoying. Failed to connect to DeepSeek API: 400 Bad Request {"error":{"message":"Messages with role 'tool' must be a response to a preceding message with 'tool_calls'","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} This error happens in multiple threads. |
Beta Was this translation helpful? Give feedback.
-
Same here, getting the message below after 10-15 "tool call not found" messages. Using Sonnet 4.5 via Copilot. It seems to be triggered by planning things. The workaround is to use something like GPT-5 for planning, then switch to Sonnet 4.5 for the implementation. Issue doesn't happen when using Anthropic's Sonnet 4.5 directly. So it's probably an issue with the Copilot model implementation.
|
Beta Was this translation helpful? Give feedback.
-
same issue here, also copilot. in vscode copilot still works fine, only in zed there is an issue |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Using the same API, this issue did not appear about 10 days ago, but in recent versions it now happens often.
Description
Steps to reproduce:
Tool call not found
Expected Behavior:
The agent should successfully call and use the tool (tools are provided by Zed).
Actual Behavior:
Error is shown:
Tool call not found
Model Provider Details
export OPENAI_BASE_URL OPENAI_API_KEY
claude-code-sonnet-4-20250514
It would be helpful if more detailed error information could be provided when this issue occurs.
Additionally, I have been a Zed Pro auto-renewal subscriber for 3 consecutive months, but suddenly my account was changed to a free user. This is strange since I have not modified any payment settings, and my payment method is working normally without any changes.
Zed Version and System Specs
Zed version: https://zed.dev/releases/stable/0.202.6
MacOS 15.5
Beta Was this translation helpful? Give feedback.
All reactions