Bug Report

Resolved 💬 4 comments Opened Jun 12, 2025 by sgpk0717 Closed Jan 6, 2026

Bug Description

Environment Info

  • Platform: macos
  • Terminal: cursor
  • Version: 1.0.21
  • Feedback ID: 4b11f686-acca-4d3f-ae73-f4ff7f7522bb

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.16.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.anthropic.com/en/docs/tool-use.\"}}\n    at g6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:12578)\n    at qw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:2082)\n    at qw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async D11.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:22007)\n    at async D11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:12203)\n    at async cw2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:21853)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:17103\n    at async Jt1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:5151)\n    at async Qu (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:17073)","timestamp":"2025-06-12T06:12:19.872Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"}}\n    at g6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:12578)\n    at qw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:2082)\n    at qw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-12T06:12:29.767Z"}]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗