search_assets
Find cloud resources across GCP projects using Cloud Asset Inventory. Filter by asset type, query, or environment to locate specific resources for incident investigation or inventory.
Instructions
Search all cloud resources in the project via Cloud Asset Inventory.
Args: asset_types: Optional comma-separated asset types to filter, e.g. 'compute.googleapis.com/Instance,run.googleapis.com/Service'. query: Optional free-text/structured query, e.g. 'state:RUNNING' or 'location:us-central1'. limit: Maximum number of resources to return. Default 50; raise it when you know you need a full inventory, since each resource costs context. include_labels: Include resource labels. Off by default because deployment labels are usually the largest part of the response and rarely answer the question being asked. environment: Which configured GCP environment to search, e.g. 'staging' or 'production'. Omit to use the default environment. Call list_environments to see what is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| asset_types | No | ||
| environment | No | ||
| include_labels | No |