Edit plan
edit_planValidate, dry-run, and apply structured editing plans to build a new timeline, then diff or explain the resulting changes.
Instructions
Build a whole edit from one plan. validate checks it; dry_run lists every step with its limits and gives a confirm_token; apply builds a NEW timeline ' AI vN' and compares it with the plan; diff compares any timeline; explain tells it in words. Examples: {"action":"validate","plan":{"meta":{"plan_version":"1.0","goal":"Short cut","video_type":"other"},"target":{"timeline_name":"Cut","fps":25,"width":1920,"height":1080},"sources":[{"id":"a","media_pool_uid":"mpi:1","fps":25,"license":{"type":"own"}}],"clips":[{"id":"c1","source":"a","src_in":0,"src_out":50,"record":0,"track":{"type":"video","index":1},"reason":"opening"}]}} | {"action":"schema"}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan": {
"meta": {
"goal": "Short cut",
"video_type": "other",
"plan_version": "1.0"
},
"clips": [
{
"id": "c1",
"track": {
"type": "video",
"index": 1
},
"reason": "opening",
"record": 0,
"source": "a",
"src_in": 0,
"src_out": 50
}
],
"target": {
"fps": 25,
"width": 1920,
"height": 1080,
"timeline_name": "Cut"
},
"sources": [
{
"id": "a",
"fps": 25,
"license": {
"type": "own"
},
"media_pool_uid": "mpi:1"
}
]
},
"action": "validate"
},
"name": "edit_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | The edit plan (see guide topic edit-plan) | |
| action | Yes | ||
| timeline | No | Handle (tl:...) of the timeline to change, from list_timelines or state_snapshot. | |
| plan_file | No | Or a .json file that holds the plan | |
| confirm_token | No | apply: from action=dry_run of exactly this plan |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No | ||
| status | Yes | ||
| changes | No | ||
| dry_run | No | ||
| snapshot | No | ||
| warnings | No | ||
| backup_made | No | ||
| destructive | No | ||
| execution_id | Yes | ||
| verification | No | ||
| confirm_token | No | ||
| plan_checksum | No | ||
| known_limitations | No |