[BUG] agent is sending empty tool names
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I'm trying to get cc to run vs oai using litellm. I was getting a lot of errors regarding empty tool names. I looked into what was getting sent from Claude and that there are empty tool names sent. Is this a bug? Any way of preventing this from happening? Below is offending payload bit
"messages": [ {
"role": "assistant",
"content": [
{
"type": "text",
"text": "(no content)"
},
{
"type": "tool_use",
"id": "call_EQdPU6OOeTZ9o9WD5GliXOf4",
"name": "",
"input": {
"todos": [
{
"content": "Answer question about available tools",
"status": "in_progress",
"activeForm": "Answering question about available tools"
}
]
},
"cache_control": {
"type": "ephemeral"
}
}
]
},
{
"role": "user",
"content": [
{
"type": "tool_result",
"content": "<tool_use_error>Error: No such tool available: </tool_use_error>",
"is_error": true,
"tool_use_id": "call_EQdPU6OOeTZ9o9WD5GliXOf4",
"cache_control": {
"type": "ephemeral"
}
}
]
}
],
What Should Happen?
All tools should have a name
Error Messages/Logs
Steps to Reproduce
Ask Claude code which tools does it have available
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.27
Platform
Other
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗