# Google Cloud Vision

Google Cloud Vision API enables developers to integrate vision detection features into applications, including image labeling, face and landmark detection, optical character recognition (OCR), and explicit content tagging.

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 29
- **Triggers:** 0
- **Slug:** `GOOGLE_CLOUD_VISION`
- **Version:** 20260312_00

## Tools

### Annotate Files with Vision API

**Slug:** `GOOGLE_CLOUD_VISION_ANNOTATE_FILES`

Tool to perform image detection and annotation for batch files in Google Cloud Vision. Supports PDF, TIFF, and GIF files. Extracts up to 5 frames (GIF) or pages (PDF/TIFF) from each file and performs detection for each image. Use when you need to analyze documents or multi-page images with features like text detection, label detection, face detection, or other Vision API capabilities.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Required. Target project and location for the request. Format: projects/{project-id}/locations/{location-id}. Supported locations: us, asia, eu. |
| `requests` | array | Yes | Required. Array of individual file annotation requests. Each request specifies input file configuration and desired features. At least one request is required. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Async Batch Annotate Files

**Slug:** `GOOGLE_CLOUD_VISION_ANNOTATE_FILES_ASYNC_BATCH`

Tool to run asynchronous image detection and annotation for a list of generic files (PDF, TIFF, GIF). Use when processing multi-page documents that may contain multiple images per page. Results are written to Google Cloud Storage and progress can be tracked via the returned operation name using VisionGetOperation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | No | Optional target project and location. Format: projects/{project-id}/locations/{location-id}. Supported locations: us, eu. If not specified, the service will auto-select a location. |
| `requests` | array | Yes | Individual async file annotation requests for this batch. Must include at least one request. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Annotate Images

**Slug:** `GOOGLE_CLOUD_VISION_ANNOTATE_IMAGES`

Run image detection and annotation for a batch of images using Google Cloud Vision API. Performs various types of image analysis including face detection, landmark detection, logo detection, label detection, text detection (OCR), safe search detection, image properties, crop hints, web detection, product search, and object localization. Supports up to 16 images in a single batch request. Each image can have multiple feature types analyzed simultaneously.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | No | Optional parent resource name in format projects/{project_id}/locations/{location_id}. Typically not required for standard image annotation. |
| `requests` | array | Yes | Array of individual image annotation requests. Each request specifies an image and features to detect. The API supports up to 16 images in a single batch request for most features (specify 1-16 requests). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Annotate Images Async Batch

**Slug:** `GOOGLE_CLOUD_VISION_ANNOTATE_IMAGES_ASYNC_BATCH`

Tool to run asynchronous image detection and annotation for a batch of images. Use when processing multiple images or large images that require longer processing time. Results are written to Google Cloud Storage as JSON files.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Required location specification in format: projects/{project-id}/locations/{location-id}. Supported locations: 'us', 'asia', 'eu'. This controls where the async batch annotation operation runs and where data is processed. |
| `requests` | array | Yes | List of image annotation requests. Must contain at least one request. Each request specifies an image (via GCS URI) and the features to detect. You can process multiple images in a single batch operation. |
| `outputConfig` | object | Yes | Configuration specifying where to write the annotation results. Results are written to Google Cloud Storage as JSON files. You must have write access to the specified GCS bucket. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Annotate Location Images

**Slug:** `GOOGLE_CLOUD_VISION_ANNOTATE_LOCATION_IMAGES`

Tool to run image detection and annotation for a batch of images scoped to a specific project and location. Performs various types of image analysis including label detection, face detection, landmark detection, logo detection, OCR text detection, safe search detection, image properties, crop hints, web detection, product search, and object localization. Supports processing up to 16 images per request with regional endpoint routing (us, asia, eu). Use this when you need to analyze images with location-specific processing for content extraction, text recognition, object detection, face identification, or landmark/logo recognition.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Target project and location for the annotation request. Format: projects/{project-id}/locations/{location-id}. Supported locations: us, asia, eu. Example: projects/my-project/locations/us |
| `requests` | array | Yes | Array of individual image annotation requests. Each request specifies an image and the features to detect on it. Maximum 16 requests per batch. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Vision Product

**Slug:** `GOOGLE_CLOUD_VISION_CREATE_PRODUCT`

Creates a new Product resource in Google Cloud Vision Product Search. A Product represents a physical item that can be visually searched using reference images. After creating a product, you can add reference images to it and include it in product sets for visual search capabilities. Prerequisites: - Vision API must be enabled in your Google Cloud project - Product Search must be enabled - Valid project ID and location (us-west1, us-east1, europe-west1, or asia-east1) Use this action to: - Register a new product for visual search - Set up product metadata (display name, description, category, labels) - Obtain a product resource name for adding reference images

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Required. The parent resource where the product will be created. Must be in format: projects/{PROJECT_ID}/locations/{LOC_ID}. Valid locations for Product Search: us-west1, us-east1, europe-west1, asia-east1. |
| `productId` | string | No | Optional. User-defined ID for the product. If not provided, the system generates one. Maximum 128 characters. Must not contain forward slashes ('/'). Use lowercase alphanumeric characters, hyphens, and underscores only. |
| `description` | string | No | Optional. User-provided description of the product. Maximum 4096 characters. Provides additional context about the product. |
| `displayName` | string | Yes | Required. Display name for the product. Must be non-empty. Maximum 4096 characters. This is the human-readable name shown to users. |
| `productLabels` | array | No | Optional. Key-value pairs for organizing and filtering products. Maximum 500 labels per product. Each key and value must be non-empty and ≤128 bytes. Useful for categorization (e.g., color:red, size:large, brand:acme). |
| `productCategory` | string | Yes | Required. Immutable product category. Cannot be changed after creation. Valid values: 'homegoods-v2', 'apparel-v2', 'toys-v2', 'packagedgoods-v1', 'general-v1'. Choose 'general-v1' for products that don't fit other categories. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Product Set

**Slug:** `GOOGLE_CLOUD_VISION_CREATE_PRODUCT_SET`

Creates a new ProductSet resource in Google Cloud Vision Product Search. A ProductSet is a container for grouping related products together for visual search. After creating a product set, you can add products to it using the AddProductToProductSet action. Prerequisites: - Vision API must be enabled in your Google Cloud project - Product Search must be enabled - Valid project ID and location (us-west1, us-east1, europe-west1, or asia-east1) Use this action to: - Create a new product set container - Organize products into logical groups - Obtain a product set resource name for adding products

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Required. The parent resource where the product set will be created. Must be in format: projects/{PROJECT_ID}/locations/{LOC_ID}. Valid locations for Product Search: us-west1, us-east1, europe-west1, asia-east1. |
| `displayName` | string | Yes | Required. Display name for the product set. Must be non-empty. Maximum 4096 characters. This is the human-readable name shown to users. |
| `productSetId` | string | No | Optional. User-defined ID for the product set. If not provided, the system generates one. Maximum 128 characters. Must not contain forward slashes ('/'). Use lowercase alphanumeric characters, hyphens, and underscores only. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create ReferenceImage

**Slug:** `GOOGLE_CLOUD_VISION_CREATE_REFERENCE_IMAGE`

Tool to create a ReferenceImage under a product. Use when adding a new image to a product for detection.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uri` | string | Yes | Google Cloud Storage URI of the image; must start with gs:// |
| `parent` | string | Yes | Resource name of the product to add the reference image under. Format: projects/{PROJECT_ID}/locations/{LOC_ID}/products/{PRODUCT_ID} |
| `boundingPolys` | array | No | Optional list of up to 10 regions of interest. If omitted, service auto-detects regions. |
| `referenceImageId` | string | No | Client-specified ID for the new ReferenceImage; max 128 chars, no '/'. If already in use, returns ALREADY_EXISTS. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Product

**Slug:** `GOOGLE_CLOUD_VISION_DELETE_PRODUCT`

Permanently deletes a Product and its associated reference images from Google Cloud Vision API. This is a destructive operation that cannot be undone. The product metadata and all images are deleted immediately, though search queries against ProductSets may temporarily return cached results until caches refresh. Use this tool when you need to remove a product that is no longer needed. Ensure you have the correct product resource name before deletion.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the Product to delete. Format: projects/{project_id}/locations/{location_id}/products/{product_id}. Supported locations: us-west1, us-east1, europe-west1, asia-east1. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Product

**Slug:** `GOOGLE_CLOUD_VISION_GET_PRODUCT`

Tool to get information associated with a Product. Use when you have the product resource name and need its details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the Product to retrieve. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/products/{PRODUCT_ID}. Supported locations: us-west1, us-east1, asia-east1, europe-west1. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Product Set

**Slug:** `GOOGLE_CLOUD_VISION_GET_PRODUCT_SET`

Tool to get a ProductSet. Use when you need metadata details of an existing ProductSet by its full resource name. Use after obtaining the resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the ProductSet to get. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/productSets/{PRODUCT_SET_ID} |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Import Product Sets

**Slug:** `GOOGLE_CLOUD_VISION_IMPORT_PRODUCT_SETS`

Asynchronously imports product sets and reference images from a CSV file stored in Google Cloud Storage. This bulk import operation creates ProductSets, Products, and ReferenceImages from a properly formatted CSV file. Returns a long-running Operation that can be polled for completion status. The import automatically creates new ProductSets and Products if they don't exist based on the IDs in the CSV. Use this when you need to: - Bulk import multiple products and images at once - Create product catalogs from existing CSV data - Set up initial product search datasets Note: Requires OAuth authentication with cloud-platform or cloud-vision scope, and read access to the GCS bucket.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Project and location resource name. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}. |
| `inputConfig` | object | Yes | The input configuration for the import request. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vision AI IndexEndpoints

**Slug:** `GOOGLE_CLOUD_VISION_LIST_INDEX_ENDPOINTS`

Lists IndexEndpoints in Vertex AI Vision for a given project and location. IndexEndpoints are deployed instances of image indexes used for visual search and retrieval in Vision AI's media warehouse. Use this tool to discover existing endpoints before querying them or to manage deployed indexes. IMPORTANT: Requires OAuth2 authentication (API keys are NOT supported). Needs 'visionai.indexEndpoints.list' IAM permission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `filter` | string | No | Filter expression supports filtering by deployedImageIndex.image_index or deployedImageIndex.corpus. |
| `parent` | string | Yes | The parent resource name. Format: projects/{project}/locations/{location}. |
| `pageSize` | integer | No | Maximum number of items to return; default 50; maximum 1000 (higher coerced to 1000). |
| `pageToken` | string | No | The nextPageToken from a previous call to retrieve the subsequent page. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Locations

**Slug:** `GOOGLE_CLOUD_VISION_LIST_LOCATIONS`

Tool to list available Vision AI service locations for a project. Use when you need to discover supported regions before making region-specific API calls.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The project resource name that owns the locations collection. Format: projects/{project_id} |
| `filter` | string | No | Filter expression to narrow results, e.g., 'displayName=tokyo'. |
| `pageSize` | integer | No | Maximum number of locations to return; between 1 and 1000. |
| `pageToken` | string | No | Pagination token from previous ListLocations call to retrieve next page of results. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vision API Operations

**Slug:** `GOOGLE_CLOUD_VISION_LIST_OPERATIONS`

Tool to list operations that match the specified filter. Use when you need to retrieve all operations under a specific project and location.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The name of the operation's parent resource. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID} |
| `filter` | string | No | The standard list filter. |
| `pageSize` | integer | No | The standard list page size. |
| `pageToken` | string | No | The standard list page token. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Purge Products

**Slug:** `GOOGLE_CLOUD_VISION_PURGE_PRODUCTS`

Tool to asynchronously delete products in a ProductSet or orphan products. Use when you need to clean up products at scale; ensure `force` is true to execute.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `force` | boolean | Yes | Must be true to actually perform the purge. |
| `parent` | string | Yes | Project and location path. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID} |
| `deleteOrphanProducts` | boolean | No | If true, delete all products not in any ProductSet. |
| `productSetPurgeConfig` | object | No | Configuration to specify a ProductSet whose products should be deleted. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Product

**Slug:** `GOOGLE_CLOUD_VISION_UPDATE_PRODUCT`

Tool to update a Product's mutable fields: displayName, description, and productLabels. Use after confirming the product resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the Product. Format: projects/{PROJECT_ID}/locations/{LOC_ID}/products/{PRODUCT_ID}. |
| `updateMask` | string | No | Comma-separated list of fields to update. Valid mask paths: displayName,description,productLabels. If omitted, all mutable fields are updated. |
| `description` | string | No | Product description; max 4096 characters. |
| `displayName` | string | No | Product display name; non-empty; max 4096 characters. |
| `productLabels` | array | No | List of labels to update; each key/value pair non-empty with max 128 bytes. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Product Set

**Slug:** `GOOGLE_CLOUD_VISION_UPDATE_PRODUCT_SET`

Tool to update a ProductSet resource. Use when you need to modify the displayName of an existing ProductSet.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the ProductSet to update. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/productSets/{PRODUCT_SET_ID} |
| `updateMask` | string | No | Comma-separated list of fields to update; only 'displayName' is supported. |
| `displayName` | string | Yes | New display name for the ProductSet (non-empty, max 4096 chars). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Product to ProductSet

**Slug:** `GOOGLE_CLOUD_VISION_VISION_ADD_PRODUCT_TO_PRODUCT_SET`

Add a Product to a ProductSet in Google Cloud Vision Product Search. This action associates a Product with a ProductSet, enabling the product to be included in product search queries against that set. Both resources must exist in the same Google Cloud project and location before calling this action. Key characteristics: - Idempotent: If the Product is already in the ProductSet, no change is made and no error occurs - Constraint: One Product can be added to at most 100 ProductSets - The Product and ProductSet must be in the same project and location - Valid locations: us-west1, us-east1, europe-west1, asia-east1 Use this after creating both a Product and a ProductSet to establish their association. Returns an empty response on success.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The ProductSet resource name to add the product to. Format: projects/{project_id}/locations/{location_id}/productSets/{product_set_id}. Valid locations: us-west1, us-east1, europe-west1, asia-east1. Example: 'projects/my-project/locations/us-west1/productSets/my-product-set' |
| `product` | string | Yes | The Product resource name to add to the ProductSet. Must be in the same project and location as the ProductSet. Format: projects/{project_id}/locations/{location_id}/products/{product_id}. Example: 'projects/my-project/locations/us-west1/products/my-product' |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Cancel Vision Operation

**Slug:** `GOOGLE_CLOUD_VISION_VISION_CANCEL_OPERATION`

Starts asynchronous cancellation of a long-running Vision API operation. Returns an empty response on successful cancellation request. Note that the server makes a best effort to cancel the operation, but success is not guaranteed. Use the Get Operation action to check if cancellation succeeded or if the operation completed despite the cancellation attempt. The server may return UNIMPLEMENTED if the operation does not support cancellation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The server-assigned name of the operation resource to cancel. Format: operations/{operation_id} or projects/{project}/locations/{location}/operations/{operation_id}. This name is returned when creating long-running operations like importProductSets or purgeProducts. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Vision API Operation

**Slug:** `GOOGLE_CLOUD_VISION_VISION_DELETE_OPERATION`

Tool to delete a long-running Vision API operation. Use after confirming the operation name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The resource name of the operation to delete, e.g. 'operations/12345'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Product Set

**Slug:** `GOOGLE_CLOUD_VISION_VISION_DELETE_PRODUCT_SET`

Tool to permanently delete a ProductSet. Use after confirming the ProductSet's resource name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The resource name of the ProductSet to delete. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/productSets/{PRODUCT_SET_ID} |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Reference Image

**Slug:** `GOOGLE_CLOUD_VISION_VISION_DELETE_REFERENCE_IMAGE`

Permanently removes a reference image from a product in Google Cloud Vision Product Search. This action deletes the reference image association from the specified product. The image will be marked for deletion and removed during the next indexing operation. Note that the actual image file in Google Cloud Storage is not deleted. Use this when you need to: - Remove outdated or incorrect product reference images - Clean up test images from products - Update product imagery by removing old references Prerequisites: - The product must exist - The reference image must have been previously created under the product - You need the full resource path of the reference image (use List Reference Images if unknown)

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The full resource path of the reference image to delete. Must follow the format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/products/{PRODUCT_ID}/referenceImages/{IMAGE_ID}. Valid locations: us-west1, us-east1, europe-west1, asia-east1. Use the List Reference Images action to find available image IDs if needed. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Vision API Operation

**Slug:** `GOOGLE_CLOUD_VISION_VISION_GET_OPERATION`

Retrieves the latest state of a long-running Vision API operation. Use this to poll the status of asynchronous operations like importProductSets or purgeProducts. The operation name is returned when you start an async operation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The full resource name of the operation to retrieve. Must be in one of these formats: (1) 'projects/{project}/operations/{operation_id}' or (2) 'projects/{project}/locations/{location}/operations/{operation_id}'. Use format (2) for location-specific operations like import and purge. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Reference Image

**Slug:** `GOOGLE_CLOUD_VISION_VISION_GET_REFERENCE_IMAGE`

Tool to get information associated with a ReferenceImage. Use when you have the full resource name and need its metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Full resource name of the ReferenceImage to retrieve. Format: projects/{PROJECT_ID}/locations/{LOCATION_ID}/products/{PRODUCT_ID}/referenceImages/{REFERENCE_IMAGE_ID} |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Products in ProductSet

**Slug:** `GOOGLE_CLOUD_VISION_VISION_LIST_PRODUCTS_IN_PRODUCT_SET`

Tool to list Products in a specified ProductSet. Use when you need to retrieve Products associated with a ProductSet after confirming it exists, with optional pagination.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the ProductSet to list Products from. Format: projects/{project_id}/locations/{location_id}/productSets/{product_set_id} |
| `pageSize` | integer | No | Maximum number of items to return; default 10; maximum 100. Requests outside 1-100 return INVALID_ARGUMENT. |
| `pageToken` | string | No | The nextPageToken from a previous call to retrieve the next page of results. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Projects

**Slug:** `GOOGLE_CLOUD_VISION_VISION_LIST_PROJECTS`

List Google Cloud projects accessible to the authenticated user via Cloud Resource Manager API. This action queries the Cloud Resource Manager API (not Vision API directly) to enumerate projects. It requires OAuth 2.0 authentication - API key auth is insufficient. Use this when you need to discover available project IDs before making Vision API calls that require project identifiers. Note: Returns projects you have 'resourcemanager.projects.get' permission on.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `filter` | string | No | Filter expression (case-insensitive). Supported fields: name, id (or projectId), labels.<key>, parent.type, parent.id, lifecycleState. Examples: 'name:how*', 'lifecycleState:ACTIVE', 'labels.color:red' |
| `pageSize` | integer | No | Maximum number of projects to return; server may return fewer. |
| `pageToken` | string | No | Token from a previous list call to retrieve the next page of results. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Reference Images

**Slug:** `GOOGLE_CLOUD_VISION_VISION_LIST_REFERENCE_IMAGES`

Tool to list reference images for a product. Use when you need to retrieve stored reference images under a specified product resource name, with optional pagination.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `parent` | string | Yes | Resource name of the product to list reference images for. Format: projects/{PROJECT_ID}/locations/{LOC_ID}/products/{PRODUCT_ID}. |
| `pageSize` | integer | No | Maximum number of images to return; default 10, maximum 100. |
| `pageToken` | string | No | Token for fetching the next page of results from a previous list call. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Remove Product from ProductSet

**Slug:** `GOOGLE_CLOUD_VISION_VISION_REMOVE_PRODUCT_FROM_PRODUCT_SET`

Removes a Product from a specified ProductSet in Google Cloud Vision API. This operation unlinks a product from a product set but does not delete either resource. Both the product and product set must exist in the same Google Cloud project and location. The product must have been previously added to the product set for this operation to succeed. Use this when you need to reorganize products across product sets or remove a product from a set without deleting the product itself.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Resource name of the ProductSet to modify. Format: projects/{project_id}/locations/{location_id}/productSets/{product_set_id} |
| `product` | string | Yes | Resource name of the Product to remove. Format: projects/{project_id}/locations/{location_id}/products/{product_id} |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
