Read Groq tool pages' Supported Models tables for serverTools #738 (GitHub #737)
main fromfix/707-groq-tools·merged by tombeckenham View on GitHubPart of #707
Groq's chat rows now get serverTools from every Groq page that lists models per hosted tool. A row none of them names stays null with no entry: these pages are not a complete per-model source, so silence would overclaim.
Sources read#
| Page | Element | Tool type id |
|---|---|---|
| https://console.groq.com/docs/tool-use/built-in-tools.md | ### GPT-OSS Models bullets + Identifier column (already parsed); "You can specify browser_search or code_interpreter" | browser_search, code_interpreter |
| https://console.groq.com/docs/browser-search.md | ## Supported Models table, Model ID column ("supported for the following models") | browser_search (from the page's tools=[{"type": ...}] examples) |
| https://console.groq.com/docs/code-execution.md | ## Supported Models and Systems table, Model ID column | code_interpreter |
| https://console.groq.com/docs/tool-use/remote-mcp.md | ## Supported Models table ("available on all Groq models that support tool use") | mcp (same id OpenAI and BytePlus rows use) |
The tables are not complete. https://console.groq.com/docs/tool-use/overview.md says "All models hosted on Groq support tool use", and its table lists minimaxai/minimax-m2.7 with tool use "Yes", but the MCP table leaves that model out. So no source-silent entry is written.
Groq also contradicts itself on openai/gpt-oss-safeguard-20b: the overview table says "Built-In Tools Support? No", while the browser-search page lists the model. This PR follows the browser-search page.
I did not read the overview's "Built-In Tools Support?" column. None of the three unnamed rows appears in it. Its "No" rows are the safeguard row, which is contradicted, and qwen/qwen3.8-27b, which the MCP page gives mcp. Silence for either would be false.
The 5 rows from #707#
openai/gpt-oss-safeguard-20b→["browser_search"](browser search table)qwen/qwen3.8-27b→["mcp"](remote MCP table)allam-2-7b,meta-llama/llama-prompt-guard-2-22m,meta-llama/llama-prompt-guard-2-86m→ null, no entry (no page names them, and the pages are not complete)
Side effect: openai/gpt-oss-20b and -120b gain mcp (remote MCP table names both).
Failure handling#
Each page loads through tryDocs under its own cache key (the built-in page keeps its key and cached shape, so no DOCS_CACHE_VERSION bump). If any page fails, every row is absent: unavailable and keeps its stored tools: a partial union is never stored and a failure never reads as silence. A tool page throws instead of naming no model when its Supported Models heading, its Model ID header, any Model ID cell or its single tools type id changes.
Checks#
- Trimmed real fixtures:
fixtures/groq-{browser-search,code-execution,remote-mcp}.md.txt(fetched 2026-11-21). server-tools.test.ts: per-page parse, changed wording throws (including a bad Model ID cell), union and per-tool sources, no entry for an unnamed model, one failed page → unavailable.pnpm run typecheck,pnpm run lint,pnpm run check;viteston groq adapter, server-tools, source-silent-facts, poll-models worker, model-facts, first-party worker: 166 passed. No spec change.