Cut clip from library item
media_library_clipCut a frame-accurate H.264/AAC clip (max 180 s, location metadata removed) from a library item and, by default, save it to your private upload library for up to 30 days. Saving a clip may delete the oldest uploads that unfinished plans no longer need to make room. The returned upload asset_id can be used directly in Video uploads or as a Movie clip (service=upload). Only for reuse_policy=reusable items unless the user confirms they hold the rights.
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": {
"item_id": "<item_id>",
"start_seconds": "<start_seconds>",
"end_seconds": "<end_seconds>",
"idempotency_key": "<idempotency_key>"
},
"name": "media_library_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | UUID of the media library item. | |
| rendition | No | Select the master or proxy as the source, or let the server choose. | |
| max_height | No | Maximum height in pixels for the clipped output. | |
| end_seconds | Yes | Clip end offset in seconds from the beginning of the source. | |
| include_audio | No | Include the source audio in the clip when available. | |
| save_as_asset | No | Save the clip to the private upload library for reuse in subsequent jobs. | |
| start_seconds | Yes | Clip start offset in seconds from the beginning of the source. | |
| idempotency_key | Yes | Unique key for the intended operation. Reuse it on network retries. | |
| confirm_reference_rights | No | Required true to cut a reference_only item; the user must state they hold permission. |