delete_scene
Remove one, several or all scenes from the script, in one call. This is the ONLY way to delete scenes: never ask the script writer (write_script_scenes) to delete or empty them. Destructive: only call after the user has explicitly asked. Pass sceneIds for specific scenes, or all: true to clear the script. A deleted scene takes its script text, and the shots, storyboard and video made from it (a render still in flight too, its credits not refunded), out of the movie, in one step. The first call never deletes: it answers needsConfirmation naming each scene (number and title) and what goes with it. In the Promvie studio chat the server shows the user this question in its own words and does it only on their plain yes: never ask it yourself, never say it was done, and never call again with the confirm flag there. Through the API, tell your user exactly what is lost and, only after they agree in a later message, call again with the confirm flag and the confirmId it gave. Through the API the confirming call names the same scenes. The result lists what was removed and what remains: report exactly that.
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": {
"movieId": "<movieId>"
},
"name": "delete_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | true to delete every scene in the script. | |
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| sceneId | No | A single scene id (older form of sceneIds). | |
| sceneIds | No | Scene ids to delete. | |
| confirmId | No | Through the API: the confirmId from the needsConfirmation answer, sent back with confirmDelete. It confirms that one question, once. | |
| confirmDelete | No | Through the API only. Leave unset on the first call. Set true ONLY after this tool answered needsConfirmation and your user, told that the scenes, their script text and the shots, storyboard and video made from them will be deleted, agreed in a later message, in a separate later call that also sends the confirmId. In the studio chat the server answers the question itself: never set it there. |