search_gemini_docs
Search Google's Gemini API documentation for specific topics like function calling, embeddings, or rate limits to find relevant guides and references.
Instructions
Search the Gemini API documentation for relevant pages.
This tool searches through the Gemini API documentation index to find pages matching your query. It searches across page titles, categories, and keywords to find the most relevant documentation.
Args:
query (string): Search query to find relevant documentation (e.g., "function calling", "embeddings", "rate limits")
max_results (number): Maximum results to return, 1-20 (default: 10)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON format: Structured data with schema: { "query": string, // The search query "total": number, // Number of results found "results": [ { "title": string, // Page title "path": string, // Documentation path (e.g., "function-calling") "url": string, // Full URL to the documentation page "category": string, // Category (e.g., "Core Capabilities") "matchedKeywords": [] // Keywords that matched the query } ] }
Examples:
"function calling" -> finds Function Calling documentation
"embeddings" -> finds Embeddings documentation
"authentication" or "api key" -> finds API Keys documentation
"rate limits" -> finds Rate Limits documentation
"vision" or "image" -> finds Image Understanding documentation
Use this tool first to find relevant documentation pages, then use fetch_gemini_doc to get the full content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query to find relevant documentation pages (e.g., 'function calling', 'embeddings', 'authentication') | |
| max_results | No | Maximum number of results to return (default: 10) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |