Invalid JSON Schema for Tool Input: Draft 2020-12 Compliance Error

Resolved 💬 3 comments Opened Sep 9, 2025 by MarkJFEdwards Closed Sep 13, 2025

Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.118.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."},"request_id":"req_011CSyXbQdirmj8DykGY2bXQ"}

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 1.0.80
  • Feedback ID: 722d2d5e-0f04-48c8-8fcf-b99fd2ee5a9f

Errors

[{"error":"Error: Invalid settings\n    at Jk5 (B:/~BUN/root/claude.exe:574:34439)\n    at aSZ (B:/~BUN/root/claude.exe:574:35145)\n    at Vk5 (B:/~BUN/root/claude.exe:574:36950)\n    at RN (B:/~BUN/root/claude.exe:574:37334)\n    at XW (B:/~BUN/root/claude.exe:574:37265)\n    at csZ (B:/~BUN/root/claude.exe:609:3442)\n    at <anonymous> (B:/~BUN/root/claude.exe:671:1149)\n    at W (B:/~BUN/root/claude.exe:456:13332)\n    at YqY (B:/~BUN/root/claude.exe:3429:9765)\n    at YqY (B:/~BUN/root/claude.exe:3429:9835)","timestamp":"2025-09-09T21:20:59.437Z"},{"error":"Error: Invalid settings\n    at Jk5 (B:/~BUN/root/claude.exe:574:34439)\n    at aSZ (B:/~BUN/root/claude.exe:574:35145)\n    at sF (B:/~BUN/root/claude.exe:574:35917)\n    at _P (B:/~BUN/root/claude.exe:562:1523)\n    at cV0 (B:/~BUN/root/claude.exe:562:1486)\n    at OPG (B:/~BUN/root/claude.exe:703:12203)\n    at <anonymous> (B:/~BUN/root/claude.exe:3442:120)\n    at <anonymous> (B:/~BUN/root/claude.exe:3430:4920)\n    at _parseCommand (B:/~BUN/root/claude.exe:450:3115)\n    at parseAsync (B:/~BUN/root/claude.exe:447:4208)","timestamp":"2025-09-09T21:20:59.539Z"},{"error":"Error: Agent file C:\\Users\\MarkJ\\.claude\\agents\\word-document-specialist.md is missing required 'name' in frontmatter\n    at h9Y (B:/~BUN/root/claude.exe:2208:1729)\n    at <anonymous> (B:/~BUN/root/claude.exe:2208:285)\n    at map (native:1:11)\n    at <anonymous> (B:/~BUN/root/claude.exe:2208:215)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-09T21:21:03.031Z"},{"error":"ReferenceError: location is not defined\n    at <anonymous> (B:/~BUN/root/claude.exe:2208:440)\n    at map (native:1:11)\n    at <anonymous> (B:/~BUN/root/claude.exe:2208:215)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-09T21:21:03.034Z"},{"error":"Error: Request was aborted.\n    at new eW (unknown:1:28)\n    at new wY (B:/~BUN/root/claude.exe:787:1921)\n    at new W6 (B:/~BUN/root/claude.exe:787:2709)\n    at makeRequest (B:/~BUN/root/claude.exe:804:3840)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-09T21:21:04.008Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.118.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.\"},\"request_id\":\"req_011CSyXYx8xyLtt95DumNHyB\"}\n    at new eW (unknown:1:28)\n    at new wY (B:/~BUN/root/claude.exe:787:1921)\n    at new AW0 (unknown:1:28)\n    at generate (B:/~BUN/root/claude.exe:787:2378)\n    at makeRequest (B:/~BUN/root/claude.exe:804:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-09T21:21:19.920Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.118.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.\"},\"request_id\":\"req_011CSyXbQdirmj8DykGY2bXQ\"}\n    at new eW (unknown:1:28)\n    at new wY (B:/~BUN/root/claude.exe:787:1921)\n    at new AW0 (unknown:1:28)\n    at generate (B:/~BUN/root/claude.exe:787:2378)\n    at makeRequest (B:/~BUN/root/claude.exe:804:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-09T21:21:53.235Z"}]

View original on GitHub ↗

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