Finish image upload
finish_image_uploadConfirm an image upload once its bytes are stored. Distinctful checks the stored file and attaches it to the draft. Send altText to describe the image for people using screen readers.
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>",
"mediaId": "<mediaId>"
},
"name": "finish_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Pixels. Required for video. | |
| height | No | Pixels. Required for video. | |
| altText | No | ||
| mediaId | Yes | The mediaId start_image_upload returned. | |
| contentCardId | Yes | The draft’s content card id, from create_draft or get_calendar. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the created or changed record, when there is one. | |
| url | Yes | Where the user can see the result in Distinctful. | |
| done | Yes |