[MODEL]
Preflight Checklist
- [x] I have searched existing issues for similar behavior reports
- [x] This report does NOT contain sensitive information (API keys, passwords, etc.)
Type of Behavior Issue
Other unexpected behavior
What You Asked Claude to Do
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.25.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.claude.com/en/docs/tool-use."},"request_id":"req_011CTmgYDPSQCGSzwxUHAjod"}
What Claude Actually Did
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.25.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.claude.com/en/docs/tool-use."},"request_id":"req_011CTmgYDPSQCGSzwxUHAjod"}
Expected Behavior
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.25.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.claude.com/en/docs/tool-use."},"request_id":"req_011CTmgYDPSQCGSzwxUHAjod"}
Files Affected
Permission Mode
Accept Edits was ON (auto-accepting changes)
Can You Reproduce This?
Yes, every time with the same prompt
Steps to Reproduce
_No response_
Claude Model
Sonnet
Relevant Conversation
Impact
Critical - Data loss or corrupted project
Claude Code Version
Claude Code v2.0.1
Platform
Anthropic API
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗