Part of #707
Gemini agent rows and the hosted Gemma 4 rows now get serverTools from the guide their own docs point to. 6 of the 8 Gemini rows in #707 get an array. 2 stay null with no entry, because no page states their tools.
Agent model pages → linked guide#
An agent model page has no Capabilities row. Its ## Documentation section says "Visit the Antigravity Agent page for full coverage of features, capabilities…" (or the same sentence with Deep Research). parsePageGuide reads that link. The model page cache entry now stores it, so DOCS_CACHE_VERSION goes to v48 (main took v47 in #744).
parseGuideTools reads the guide's ## Supported tools table, Type value column. The agents' Interactions API uses these snake_case type values. The stored ids are the generateContent names, produced by one mechanical snake-to-camel rule: google_search → googleSearch, code_execution → codeExecution, url_context → urlContext, file_search → fileSearch, and mcp_server → mcpServer. mcpServer is admitted for guide tables only, because no Capabilities label names it. It is not mapped to mcp, since that would mean keeping a hand-typed pair. Two rows are not stored: function (a client tool) and Filesystem (no type value).
Any other type value throws, and so does a table that is present but yields no type value. A guide with no Supported tools heading states nothing (the computer-use guide). A guide that fails to load goes through tryDocs under its own cache key, and its rows are absent: unavailable. Guides are fetched only for pages with no Capabilities row.
| Row | Model page | Guide | serverTools |
|---|
antigravity-preview-09-2026 | links /docs/antigravity-agent | Supported tools | codeExecution, googleSearch, urlContext, mcpServer |
antigravity-preview-05-2026 | own page (deprecated), links /docs/antigravity-agent | same | same |
deep-research-preview-04-2026 | links /docs/deep-research | Supported tools | googleSearch, urlContext, codeExecution, mcpServer, fileSearch |
deep-research-max-preview-04-2026 | links /docs/deep-research | same | same |
gemini-2.5-computer-use-preview-10-2025 | links /docs/computer-use | no Supported tools section. Its "Model versions" list leaves this shut-down model out | null, no entry |
antigravity-latest | no page (404). Not in the guide or the changelog | none | null, no entry |
Gemma 4 → "Run Gemma with the Gemini API"#
https://ai.google.dev/gemma/docs/core/gemma_on_gemini_api (HTML only): the Supported models table's Identifier column lists gemma-4-31b-it and gemma-4-26b-a4b-it, and the page says "The selector on this page offers the two sizes the API serves, and every example below follows it." The Google Search section's REST example sends "tools": [{"googleSearch": {}}]. parseGemmaGuideTools parses each REST tools array as JSON and binds every key of every element to every Identifier in the table. An array that does not parse throws. A changed table or a missing selector sentence throws. functionDeclarations is skipped, and any other key outside the vocabulary throws.
gemma-4-26b-a4b-it, gemma-4-31b-it → ["googleSearch"]. The guide is not a complete tool list, so a size it gives no tool gets no silence entry.
Cold-poll cost#
Guides are fetched only for model pages with no Capabilities row. On a cold cache those pages link up to 8 distinct guides, plus the Gemma guide: up to 9 extra subrequests per poll, several of them over 100 KB (the antigravity and deep-research guides are about 105 KB each). Each is cached for 6 hours under its own key.
Checks#
- Trimmed real fixtures, fetched 2026-11-21:
gemini-antigravity-agent.md.txt, gemini-deep-research.md.txt, gemini-antigravity-preview-09-2026.md.txt, gemma-on-gemini-api.html.txt.
- Tests:
- Each guide table parses.
- Changed wording throws: header, unknown type value, Identifier header, selector sentence, unknown tools key.
- The agent page binds through
geminiModelFeatures.
- A guide with no table states nothing.
- A failed guide is
unavailable.
- Gemma attach and its failure path.
pnpm run typecheck, pnpm run lint, pnpm run check. Vitest on src/server/providers/gemini*, model-features, model-facts, native-reasoning, source-silent-facts and the poll-models worker: 236 passed. No spec change.
Summary by CodeRabbit#
- New Features
- Gemini model listings can now reflect supported tools documented in linked guides, including for hosted Gemma models.
- Added documentation for the Antigravity agent, Deep Research, and the September 2026 Antigravity preview model.
- Documentation
- Added Gemma 4 Gemini API guidance with function-calling and Google Search examples in Python, JavaScript, and REST.
- Added details on model availability, supported inputs and outputs, tools, and configuration.
coderabbitai[bot](GitHub profile, opens in a new tab) reviewed
Actionable comments posted: 2
bc16e9ed-0669-4680-b82f-587749197396Reviewing files that changed from the base of the PR and between afc95521787cfc4ce5ec985f13e1e2fd55a761ad and e2f5497557ad901149331cab48f252203e837508.
src/server/providers/fixtures/gemini-antigravity-agent.md.txtsrc/server/providers/fixtures/gemini-antigravity-preview-09-2026.md.txtsrc/server/providers/fixtures/gemini-deep-research.md.txtsrc/server/providers/fixtures/gemma-on-gemini-api.html.txtsrc/server/providers/gemini-bindings.test.tssrc/server/providers/gemini-bindings.tssrc/server/providers/gemini-features.tssrc/server/providers/model-facts.tssrc/server/providers/model-features.test.tsIncluded review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.