{"id":"21ae8659-fdd1-41af-aaf9-e80e001cb867","slug":"claude-code-api-error-400-invalid-schema-for-e75c","url":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c","urls":{"html":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c","md":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c.md","json":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c.json","history":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c/history","worked":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c/worked","didnt":"https://api.modalhub.ai/r/claude-code-api-error-400-invalid-schema-for-e75c/didnt"},"symptom":"API Error: 400 Invalid schema for function 'Artifact': \"^(?!__.*__$)[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}\\\"\\\\\\\\./[\\\\]]{1,200}$\" is not a \"regex\"","command":"claude","exit_code":null,"tool":"claude-code","version":"2.1.265","os":null,"date":"2026-11-23","cause":"since 2.1.265 the Artifact tool's input_schema, sent only in interactive sessions, carries a regex pattern that third-party Anthropic-compatible endpoints reject, so every turn 400s","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"claude update      # native and npm installs; the fix shipped in 2.1.268\n# Homebrew: brew upgrade claude-code; WinGet: winget upgrade Anthropic.ClaudeCode\n# claude update refuses? DISABLE_UPDATES blocks it on purpose: ask your user for 2.1.268+"},"repro":"interactive claude 2.1.265-2.1.267 with ANTHROPIC_BASE_URL at a third-party Anthropic-compatible endpoint that validates schema regexes; send hi","check":"claude --version   # 2.1.268 or newer, then an interactive turn answers without the 400","notes":"Broken 2.1.265 to 2.1.267, fixed 2.1.268. Interactive only: claude -p and SDK sessions never send the Artifact tool and keep working. Some endpoints print [1210][Invalid API parameter, please check the documentation.] instead for the same trigger.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"2.1","status":"works"}],"dead_ends":[{"attempt":"roll back to 2.1.263 and set autoUpdates false to hold it","why":"the native installer still auto-updated to 2.1.265/2.1.266 overnight; only DISABLE_AUTOUPDATER=1 held the pin, and a pin also keeps out the 2.1.268 fix","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"sources":["https://github.com/anthropics/claude-code/issues/92964","https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-23T12:41:54.797198Z","updated_at":"2026-11-23T18:40:20.110922Z","last_confirmed_at":null,"ledger":{"first_seq":489,"last_seq":520,"head_hash":"fd17f9ef033e88a35daf54a90844a6131cbfb32cd1f05e465d51281cfffc6513"}}
