script
Read, write, and assign dialogue lines for animated films, including AI-generated text from a topic, then map lines to shots for voice or captions.
Instructions
The film's script, the way Sound and script does it. action get (read-only): title, the chosen voice, every line (id, text, feeling, whether it has a voice and how long) and which shots speak it; use the line ids with assign, speak or own_voice. action write: put a script in: your own lines (short, 5-15 words, one shot each), or text (a whole script, cut into lines at sentences), or only a topic (Dinoctor's Claude writes it; uses the person's own Claude Code and can take a few minutes, so say so first). Unless put_in_film is false, lines go into a scene: shots there without a voice take lines in order, and each line left over becomes a new shot sized to it. Captions show a line's words until it has a voice. replace: false adds to the script. action assign: give one shot (shot_id, or scene + shot; default the shot on screen) one line: the shot speaks that line's voice (or shows its words as a caption until it has one), replacing its own voice; fit: true makes the shot as long as the line. write and assign are one undo step each. To make the voices, call speak next.
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": {
"action": "<action>"
},
"name": "script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Shots that take a line get the line's length (write: default true; assign: default false). | |
| line | No | assign: a line id from action get. | |
| shot | No | Shot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too. | |
| text | No | write: a whole script to cut into lines at sentences. | |
| tone | No | For a topic: the tone, like 'funny' or 'calm documentary'. | |
| lines | No | write: your own lines, in order: plain strings or { text, feeling }. | |
| scene | No | write: the scene to put the lines in, index from 0 (default: the scene on screen). assign: with shot, the shot's scene. | |
| title | No | The script's title. | |
| topic | No | write: only a topic: Dinoctor's Claude writes the script. | |
| action | Yes | get the script, write lines into it, or assign one line to one shot. | |
| replace | No | false: add to the script instead of replacing it. Default true. | |
| seconds | No | For a topic: how long the film is (default 60). | |
| shot_id | No | assign: the shot's id from get_project. Or give scene and shot. | |
| captions | No | Show captions of the lines (default true). | |
| new_shots | No | false: leftover lines wait instead of becoming new shots. | |
| put_in_film | No | false: only keep the lines in the script, don't touch shots. Default true. |