get_doc_snippets
Retrieve precise code snippets or concise answers from official documentation for technical queries. Specify the software/library topic and your query to get exact solutions without unnecessary explanations.
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-exp-03-25) with Google Search. Requires 'topic' and 'query'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>",
"query": "<query>"
},
"name": "get_doc_snippets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_examples | No | Optional. Whether to include additional usage examples beyond the primary snippet. Defaults to true. | |
| 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. |