Finish video upload
finish_video_uploadConfirm a video upload once every byte is stored. Distinctful verifies the stored file and attaches it to the draft. Read durationMs, width, and height from the file, for example with ffprobe.
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>",
"durationMs": "<durationMs>",
"width": "<width>",
"height": "<height>"
},
"name": "finish_video_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Video width in pixels. | |
| height | Yes | Video height in pixels. | |
| altText | No | ||
| mediaId | Yes | The mediaId start_video_upload returned. | |
| durationMs | Yes | Video duration in milliseconds, as from ffprobe. | |
| 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 |