Add media clip
add_timeline_clip[write] Add a media clip from ONE of assetId or src, on the first free lane at startMs. items places a whole cut list in one save. Use to lay down footage, b-roll, images or music. Not for text, shapes or captions (use add_text, add_shape, add_caption_line), or to push later clips along (use insert_clip_ripple). Returns the changed clips' rows (with handles) and counts. The new clip's handle is in changed. Related: list_media, list_assets, trim_clip, set_clip_transform.
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": {
"project_id": "<project_id>"
},
"name": "add_timeline_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | No | Media URL, instead of assetId; stock URLs are imported. | |
| kind | No | Default the file's; video for a src. | |
| items | No | Several clips; each takes the fields above. | |
| title | No | Label (default the file name). | |
| track | No | Lane, 0 = bottom (default); bumped up if occupied. | |
| width | No | Source px (default the file's). | |
| height | No | Source px (default the file's). | |
| assetId | No | File id (list_media) or motion graphic id (list_assets). | |
| startMs | No | Start, ms (default the timeline's end). | |
| durationMs | No | Length, ms (default the file's; src 3000, image 4000). | |
| project_id | Yes | The AskEditor project this acts on (from list_projects). | |
| srcDurationMs | No | Source length, ms (default the file's). |