write_script_scenes
Delegate script WRITE turns to the dedicated script-writer model: editing or rewriting scenes, adding scenes, renumbering, or restructuring the scene list. Deleting scenes, some or all, is delete_scene, never this tool: the writer cannot return an empty script. Call this in script mode whenever the user asks for a script change — pass a self-contained brief; do NOT write scene content yourself. The writer sees the current scenes and your brief, rewrites the full scene list, and persists it in the background. For a tiny tweak where you already have the exact final text, update_scene is cheaper.
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>",
"brief": "<brief>"
},
"name": "write_script_scenes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes | Required. The writing brief: the user's request plus every decision already made in the conversation (which scenes to touch, tone, pacing, characters, target durations, and whether this is a scoped edit or a broader rewrite). The writer only sees the current scenes and this brief — make it self-contained. | |
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| sceneIds | No | The scene numbers the user asked to change (a new number adds that scene). Set it whenever the request names scenes ("update scene 3"): only those are written, every other scene stays exactly as it is. Leave it out only for a change to the whole script. |