Edit timeline in one go
edit_timeline[write] Several timeline edits in one call, applied in order: each op is a timeline editing tool and its arguments (move_clip, trim_clip, split_clip, add_text, set_clip_transform, set_clip_animation, add_keyframe, add_marker…) or a caption edit (edit_subtitle_line, add_caption_line, position_subtitles, toggle_subtitles, set_subtitle_style). Use it instead of calling those tools one by one. Stops at the first edit that fails and says which. Returns what changed across all of them (changed clips, removed handles, and tracks/transitions/markers when they moved), plus a link to the whole timeline.
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>",
"ops": "<ops>"
},
"name": "edit_timeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | The edits, in order. | |
| project_id | Yes | The AskEditor project (from list_projects). |