Insert Doc Image
insert_doc_imageInsert an image into a Google Doc at a specified position using a Drive file ID or public URL. Specify user email, document ID, and optional dimensions for precise placement.
Instructions
Inserts an image into a Google Doc from Drive or a URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_google_email": "<user_google_email>",
"document_id": "<document_id>",
"image_source": "<image_source>",
"index": "<index>"
},
"name": "insert_doc_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Position to insert image (0-based) | |
| width | No | Image width in points (optional) | |
| height | No | Image height in points (optional) | |
| document_id | Yes | ID of the document to update | |
| image_source | Yes | Drive file ID or public image URL | |
| user_google_email | Yes | User's Google email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |