Replace clip source
replace_clip_mediaSwap a timeline clip's source with another project item while keeping its track, start time, and duration—ideal for replacing footage without moving or retiming the clip.
Instructions
Swap the source of a timeline clip for another project item while keeping its track, timeline start and duration. The new source is used from source_in (default: the same source in point as before). Fails when the new item is too short to fill the clip. Linked clips are not changed. Returns the clip with its new source.
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": "replace_clip_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| source_in | No | Source time of the new item at the clip's first frame, in seconds. Default: the clip's current source in point. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| new_item_id | No | Id of the project item to use as the new source. Preferred. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| new_item_name | No | Name of the new source item; the first match is used. | |
| new_item_path | No | Project panel path of the new source, e.g. "Footage/take2.mp4". | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |