Anthropic API Validation Error: Unsupported JSON Schema Keyword in Tool Definition
Resolved 💬 5 comments Opened Jul 12, 2025 by masoodimran Closed Dec 10, 2025
Bug Description
Error on every command. Nothing works. Node version -> 22.17.0. Error => API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"tools.15.custom.input_schema:
input_schema does not support oneOf, allOf, or anyOf at the top level"}}
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 1.0.51
- Feedback ID: d379d026-8c41-4974-bc63-6117004fd8bc
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.15.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n at Z6.generate (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:12578)\n at iq.makeStatusError (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2100)\n at iq.makeRequest (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async tA1.showErrors (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:23178)\n at async tA1 (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:12720)\n at async oO2 (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:23029)\n at async file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:18138\n at async c0A (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:5121)\n at async Tc (file:///Users/masoodimran/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:18108)","timestamp":"2025-07-12T05:10:29.043Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗