Start image upload
start_image_uploadAttach an image to a draft (up to 10 media per draft). Returns a mediaId and a signed uploadUrl: send the file’s bytes there with an HTTP PUT and the returned headers, then call finish_image_upload. For video, use start_video_upload.
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": {
"contentCardId": "<contentCardId>",
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"sizeBytes": "<sizeBytes>"
},
"name": "start_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | File name with its extension, such as launch.png. | |
| mimeType | Yes | One of image/jpeg, image/png, image/gif, image/webp. | |
| sizeBytes | Yes | Exact file size in bytes. | |
| threadPostId | No | On a thread, the id of the post the image belongs to, from get_draft. | |
| contentCardId | Yes | The draft’s content card id, from create_draft or get_calendar. |