Edit workflow
edit_workflowEdit supported settings in an explicitly selected saved workflow. This changes generation setup, not existing video output, and never regenerates or spends credits implicitly. Supply the inspected revisions for exactly the affected documents and a new mutationId UUID. A stale revision conflicts atomically; recover an uncertain result with get_project_edit.
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": {
"mutationId": "<mutationId>",
"commands": "<commands>",
"expectedDocuments": "<expectedDocuments>",
"projectId": "<projectId>"
},
"name": "edit_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| projectId | Yes | ||
| mutationId | Yes | ||
| expectedDocuments | 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 |