Google Docs
GOOGLEDOCS_REPLACE_IMAGE
Tool to replace a specific image in a document with a new image from a URI. Use when you need to update an existing image within a Google Doc.
Remote googledocs
Other tools also called GOOGLEDOCS_REPLACE_IMAGE?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"document_id": {
"type": "string",
"title": "Document Id",
"examples": [
"1a2B3c4D5e6F7g8H9i0J"
],
"description": "The ID of the document containing the image to replace."
},
"replace_image": {
"type": "object",
"title": "Replace Image",
"required": [
"image_object_id",
"uri"
],
"properties": {
"uri": {
"type": "string",
"title": "Uri",
"examples": [
"https://www.example.com/new_image.png"
],
"description": "The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URI must be publicly accessible and at most 2 kB in length. The URI itself is saved with the image, and exposed via the ImageProperties.content_uri field."
},
"tab_id": {
"type": "string",
"title": "Tab Id",
"default": null,
"examples": [
"0"
],
"nullable": true,
"description": "The tab that the image to be replaced is in. When omitted, the request is applied to the first tab."
},
"image_object_id": {
"type": "string",
"title": "Image Object Id",
"examples": [
"gc.0123456789abcdef"
],
"description": "The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request."
},
"image_replace_method": {
"enum": [
"CENTER_CROP",
"IMAGE_REPLACE_METHOD_UNSPECIFIED"
],
"type": "string",
"title": "ImageReplaceMethod",
"default": "CENTER_CROP",
"examples": [
"CENTER_CROP"
],
"nullable": true,
"description": "The replacement method. Defaults to CENTER_CROP if not specified."
}
},
"description": "The details of the image replacement request.",
"additionalProperties": false
}
}
}