[Bug] Anthropic API Error: Tool name exceeds 64 character limit
Resolved 💬 3 comments Opened Feb 1, 2026 by lubosstrejcek Closed Feb 4, 2026
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.24.content.0.tool_result.content.3
.tool_reference.tool_name: String should have at most 64 characters"},"request_id":"req_011CXgxksTxLM2KHrHJYJYaC"}
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.27
- Feedback ID: 1fd0c3cd-f369-4fe5-8e81-8a8843028bf8
Errors
[{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n at ChildProcess.<anonymous> (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2222:21521)\n at ChildProcess.emit (node:events:508:20)\n at ChildProcess._handle.onexit (node:internal/child_process:293:12)","timestamp":"2026-02-01T07:33:38.951Z"},{"error":"ReferenceError: Bun is not defined\n at Z34 (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1602:27809)\n at f34 (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:83)\n at C5q (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4787:6330)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4787:3611\n at async Z$A (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:2007)\n at async pM1 (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4787:3581)\n at async mN (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3186:5201)\n at async file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:6197:2795\n at async file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:6197:4107","timestamp":"2026-02-01T07:34:04.688Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.24.content.0.tool_result.content.3.tool_reference.tool_name: String should have at most 64 characters\"},\"request_id\":\"req_011CXgxksTxLM2KHrHJYJYaC\"}\n at g4.generate (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:404:8665)\n at gy.makeStatusError (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:421:2195)\n at gy.makeRequest (file:///Users/xx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:421:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-02-01T07:34:05.090Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗