Update Script
update_scriptReplace a video's script lines. This is a full replacement, not a patch — call get_script first and send back every line. Editing a line's text invalidates any narration already generated for it, and the response reports how many lines were affected; regenerate the voiceover afterwards. Locked videos are refused.
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": {
"videoId": "<videoId>",
"lines": "<lines>"
},
"name": "update_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The complete set of lines, in order | |
| videoId | Yes | The video ID (e.g. vid_...) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| videoId | No | ||
| voiceoverInvalidatedLines | No |