get_doc_snippets
Retrieve precise code snippets and concise answers from official documentation for technical queries, solving issues by providing exact solutions with optional version targeting.
Instructions
Provides precise, authoritative code snippets or concise answers for technical queries by searching official documentation. Focuses on delivering exact solutions without unnecessary explanation. Uses the configured Vertex AI model (gemini-2.5-pro) with Google Search. Requires 'topic' and 'query'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The specific question or use case to find a snippet or concise answer for. | |
| topic | Yes | The software/library/framework topic (e.g., 'React Router', 'Python requests', 'PostgreSQL 14'). | |
| version | No | Optional. Specific version of the software to target (e.g., '6.4', '2.28.2'). If provided, only documentation for this version will be used. | |
| include_examples | No | Optional. Whether to include additional usage examples beyond the primary snippet. Defaults to true. |