fetch_gemini_doc
Retrieve and parse specific Gemini API documentation pages to access structured content including guides, code examples, and references for features like function calling and embeddings.
Instructions
Fetch and parse a specific Gemini API documentation page.
This tool fetches a documentation page from the Gemini API docs and extracts its content including title, sections, and code examples.
Args:
path (string): The documentation path (e.g., "function-calling", "embeddings"). Use empty string "" for the main overview page.
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON format: Structured data with schema: { "url": string, // Full URL of the page "title": string, // Page title "description": string, // Brief description "sections": [ { "level": number, // Heading level (1-6) "title": string, // Section title "content": string // Section content } ], "codeExamples": [ { "language": string, // Programming language "code": string // Code snippet } ], "fullText": string // Full text content (truncated if too long) }
Common paths:
"" (empty) - Main overview page
"quickstart" - Getting started guide
"function-calling" - Function calling / tool use
"embeddings" - Text embeddings
"structured-output" - JSON structured output
"text-generation" - Text generation basics
"image-understanding" - Vision / image analysis
"audio" - Audio understanding
"live" - Live API (real-time streaming)
"api-key" - API key setup
"models" - Available models
"pricing" - Pricing information
"rate-limits" - Rate limits and quotas
Use search_gemini_docs first to find the correct path if you're unsure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Documentation path (e.g., 'function-calling', 'embeddings', 'quickstart'). Use empty string for the main overview page. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |