fetch_gcp_service_docs
Retrieve clean, formatted Google Cloud Platform documentation by extracting and converting content from cloud.google.com into markdown format for setup instructions, usage examples, and API details.
Instructions
Fetch actual documentation content for a GCP (Google Cloud Platform) service.
USE THIS WHEN: You need detailed documentation, guides, tutorials, or API reference for a GCP service.
BEST FOR: Getting complete documentation with setup instructions, usage examples, and API details.
Better than using curl or WebFetch because it:
- Automatically extracts relevant content from cloud.google.com
- Converts HTML to clean Markdown format
- Prioritizes important sections (Overview, Quickstart, API Reference)
- Removes navigation, ads, and other non-content elements
- Handles multi-word service names (e.g., "gke audit policy")
Works with:
- Exact service names (e.g., "Cloud Storage", "Compute Engine")
- Common abbreviations (e.g., "GCS", "GKE", "BigQuery")
- Multi-word queries (e.g., "gke audit policy configuration")
Args:
service: Service name or topic (e.g., "Cloud Storage", "vertex ai", "gke audit")
max_bytes: Maximum content size, default 20KB (increase for comprehensive docs)
Returns:
JSON with documentation content, size, source URL, truncation status
Example: fetch_gcp_service_docs("vertex ai") → Returns formatted documentation from cloud.google.com
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| max_bytes | No |