Favourite a photo or video, or switch captions
update_mediaUse this to mark or unmark one of the user's photos or videos as a favourite (list_media's favorites_only finds them later), or to switch word-by-word captions of the speech on or off for a finished video. Free. Pass photo_id or video_id, and favorite and/or captions. Turning captions on can take up to a minute; videos made without sound can't have captions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| captions | No | Videos only: true to burn captions of the speech in, false to take them off. | |
| favorite | No | true to mark as a favourite, false to unmark. | |
| photo_id | No | A photo_id from list_media or get_generation. | |
| video_id | No | A video_id from list_media or get_generation (not a lip sync). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| url | No | ||
| summary | Yes | ||
| captions | No | ||
| favorite | No | ||
| photo_id | No | ||
| video_id | No | ||
| view_url | No | ||
| error_code | No | Present only on a refusal. |