Vertex AI MCP Server

by shariqriazz
Verified

save_doc_snippet

Saves precise code snippets or concise answers from official documentation to a specified file, using a Vertex AI model with Google Search for technical queries. Requires topic, query, and output path.

Instructions

Provides precise code snippets or concise answers for technical queries by searching official documentation and saves the result to a file. Uses the configured Vertex AI model (gemini-2.5-pro-exp-03-25) with Google Search. Requires 'topic', 'query', and 'output_path'.

Input Schema

NameRequiredDescriptionDefault
include_examplesNoOptional. Whether to include additional usage examples beyond the primary snippet. Defaults to true.
output_pathYesThe relative path where the generated snippet(s) should be saved (e.g., 'snippets/react-hook-example.ts').
queryYesThe specific question or use case to find a snippet or concise answer for.
topicYesThe software/library/framework topic (e.g., 'React Router', 'Python requests', 'PostgreSQL 14').
versionNoOptional. Specific version of the software to target (e.g., '6.4', '2.28.2'). If provided, only documentation for this version will be used.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "include_examples": { "default": true, "description": "Optional. Whether to include additional usage examples beyond the primary snippet. Defaults to true.", "type": "boolean" }, "output_path": { "description": "The relative path where the generated snippet(s) should be saved (e.g., 'snippets/react-hook-example.ts').", "type": "string" }, "query": { "description": "The specific question or use case to find a snippet or concise answer for.", "type": "string" }, "topic": { "description": "The software/library/framework topic (e.g., 'React Router', 'Python requests', 'PostgreSQL 14').", "type": "string" }, "version": { "default": "", "description": "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.", "type": "string" } }, "required": [ "topic", "query", "output_path" ], "type": "object" }
ID: 4flmun3tjc