Finalize dossier media upload
finalize_dossier_media_uploadStep two: register the uploaded video in the dossier and return the Markdown. Reads the bytes and determines the type FROM THEM — a signed PUT address accepts whatever it is given, and a is read by content, not by Content-Type. An MP4 container that is really AVIF, or an HTML file, is rejected here and the object removed. Also records whether the file carries the avc1 brand: a positive indication of H.264 where present, and NOT used to reject, because the codec can sit in a moov atom at the end of the file and refusing a valid video would be the worse error.
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": {
"upload_id": "<upload_id>"
},
"name": "finalize_dossier_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt_text | No | ||
| filename | No | ||
| upload_id | Yes | Exactly as returned by create_dossier_media_upload_url. | |
| poster_image_id | No | An image of the same dossier as the still frame. | |
| duration_seconds | No |