Edit video
edit_videoApply typed immediate edits to one explicitly selected editable video, or start one background edit on it. Inspect first, use its revision, and provide a new mutationId UUID. A repeated request must retain its original id, target, revision and commands. A CONFLICT means nothing was applied; re-read and reconsider before a new edit. Changes to text/prompts do not regenerate media. Enabling captions only displays available transcript data. A background command (logo, transitions, zoom, transcript cleanup, generation, translation, added or draft media, asset tools) must be sent alone; it returns STARTED with a videoEditId to poll with list_video_edits, and paid commands spend credits after the user agrees. This operation does not export or publish anything.
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": {
"mode": "<mode>",
"mutationId": "<mutationId>",
"expectedRevision": "<expectedRevision>",
"commands": "<commands>",
"projectId": "<projectId>",
"editableVideoId": "<editableVideoId>"
},
"name": "edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| commands | Yes | Immediate commands save together. A background command (logo, transitions, zoom, transcript cleanup, generation, translation, added or draft media, asset tools) must be the only command in its request and starts a background task. | |
| projectId | Yes | Project id returned by list_projects. | |
| mutationId | Yes | ||
| editableVideoId | Yes | Exact video id from list_project_artifacts. Never choose the active or latest video implicitly. | |
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| projectId | Yes | ||
| mutationId | Yes | ||
| videoEditId | No | Present when outcome is STARTED. Poll GET /v1/projects/{projectId}/video-edits for this id to follow the background task. | |
| editableVideoId | No | ||
| projectRevision | Yes |