You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemini API rejects JSON Schema containing $ref references #12295
Problem
Gemini API rejects schemas containing
$refalongside other fields, causing errors like:This happens when MCP tools use JSON Schema with
$refreferences to$defs/definitions.Expected Behavior
OpenCode should expand
$refreferences before sending schemas to Gemini API.Related Issues
$defsreferencesRelated PRs