insert_doc_image
Insert an inline image from a public URL.
writeGoogle Sheets, Docs & Drive
Call it
In an AI client (MCP)
{
"name": "insert_doc_image",
"arguments": {
"documentId": "<documentId>",
"imageUri": "<imageUri>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/insert_doc_image \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"documentId":"<documentId>","imageUri":"<imageUri>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
imageUrirequired | string | a publicly readable URL (at most 2 kB) of a PNG, JPEG or GIF under 50 MB and 25 megapixels — a .webp is refused. |
index | integer | Insertion index. Omit to append. |
widthPt | number | size in points, applied only when BOTH are given (one alone is ignored); the image is scaled to fit inside that box, keeping its aspect ratio. |
heightPt | number | size in points, applied only when BOTH are given (one alone is ignored); the image is scaled to fit inside that box, keeping its aspect ratio. |
Result
Every tool answers {notification, data, human_action}; data carries:
- { inserted: true }