Create a subclip
create_subclipCreates a subclip from a source clip using only the portion between start and end seconds, placing it in a specified bin or beside its source without copying media.
Instructions
Create a subclip: a new project item that uses only the part of a clip between start and end (seconds from the beginning of the source media). The item_* arguments name the source clip; a bin or a sequence fails with BAD_ARGS. The subclip is put in the bin given by bin_*, or next to its source when no bin is given; the media file is not copied. An end beyond the media fails with BAD_ARGS. Returns the new item with its start, end and duration in seconds and the source item id.
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": {
"name": "<name>",
"start": "<start>",
"end": "<end>"
},
"name": "create_subclip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End of the subclip in the source media, in seconds from the media start. Must be greater than start and within the media. | |
| name | Yes | Name of the subclip. | |
| start | Yes | Start of the subclip in the source media, in seconds from the media start. | |
| bin_id | No | Stable id of the bin to put the subclip in. Omit all bin_* arguments to put it next to its source. | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| bin_name | No | Bin name; the first match is used. | |
| bin_path | No | Bin path, e.g. "Selects/Day 1". | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| take_audio | No | Include the audio of the source. Default true. | |
| take_video | No | Include the video of the source. Default true. take_video and take_audio cannot both be false. | |
| hard_boundaries | No | true = the subclip cannot be trimmed beyond start/end on a timeline. Default false. |