Generate the script or analyze it
script_generategenerate: write the script from the brief and the narrative style; each run is a new version (review it with script_read).
analyze (Analyze Script): find the script's characters, environments
and objects (including any named only in [SCENE: ...] directions) and
split it into voice blocks. Existing assets are kept as they are
(description, reference image, voice) and new ones added; assets the
script no longer names stay until the user deletes them. Review with
assets_read.
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>",
"project_id": "<project_id>"
},
"name": "script_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id (get_generation_options); omit for the saved choice | |
| action | Yes | generate: write the script; analyze: Analyze Script | |
| settings | No | Model settings: keys of its settings_schema | |
| project_id | Yes | Project id | |
| editable_sections | No | Template prompt section overrides, keyed by section id |