Invalid Tool Input Schema: Unsupported JSON Schema Validation Construct
Resolved 💬 4 comments Opened Apr 4, 2025 by ChrisThackrey Closed Jan 6, 2026
Bug Description
/init is analyzing your codebase…
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level"}}
Environment Info
- Platform: macos
- Terminal: WarpTerminal
- Version: 0.2.62
- Feedback ID: 3955c27f-ce98-44b5-b499-0d313cac6aad
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-04T20:06:19.189Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1571:1809\n at async Ip (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1568:3847)\n at async Gi2 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1571:1649)\n at async Lv1 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1568:2075)\n at async Ax2 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1569:130)\n at async Qj5 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1419:73)","timestamp":"2025-04-04T20:06:19.358Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must contain non-whitespace text\"}}\n at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-04T20:06:52.876Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗