Edit video
edit_videoEdit an existing completed video node with a text instruction. prompt describes the change and what should stay unchanged. modelKey must be a video model from list_models that supports video editing. Spends credits; use estimate_cost first if unsure. Returns immediately with a new nodeId and status, plus the parent node it edited so you can confirm it was the right one; poll get_generation_status until it is COMPLETED or FAILED. If the user's intent is ambiguous across branches, call get_thread and ask which node before spending credits.
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": {
"threadId": "<threadId>",
"nodeId": "<nodeId>",
"prompt": "<prompt>",
"modelKey": "<modelKey>"
},
"name": "edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Completed video node to edit. | |
| prompt | Yes | The change to make; also say what should stay unchanged. | |
| modelKey | Yes | Video model key from list_models that supports video editing. | |
| threadId | Yes | Thread containing the node. |