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
Name | Required | Description | Default |
---|---|---|---|
include_examples | No | Optional. Whether to include additional usage examples beyond the primary snippet. Defaults to true. | |
output_path | Yes | The relative path where the generated snippet(s) should be saved (e.g., 'snippets/react-hook-example.ts'). | |
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. |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Vertex AI MCP Server
- answer_query_direct
- answer_query_websearch
- create_directory
- edit_file_content
- explain_topic_with_docs
- generate_project_guidelines
- get_directory_tree
- get_doc_snippets
- get_filesystem_info
- list_directory_contents
- move_file_or_directory
- read_file_content
- read_multiple_files_content
- save_answer_query_direct
- save_answer_query_websearch
- save_doc_snippet
- save_generate_project_guidelines
- save_topic_explanation
- search_filesystem
- write_file_content
Related Tools
- @shariqriazz/vertex-ai-mcp-server
- @shariqriazz/vertex-ai-mcp-server
- @shariqriazz/vertex-ai-mcp-server
- @shariqriazz/vertex-ai-mcp-server
- @shariqriazz/vertex-ai-mcp-server