Export the script
export_scriptExports a drama (or a range of episodes) as one document: "json" (shortdrama.script.v1: settings, bible, cast, locations, props, episodes with scenes, references by name) or "fountain" (a standard screenplay; machine data rides in notes so it imports back losslessly). Edit it anywhere, then import_script.
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": {
"drama_id": "<drama_id>"
},
"name": "export_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Script format: "json" (shortdrama.script.v1) or "fountain" (screenplay text). | json |
| drama_id | Yes | The drama id (drm_…), from list_dramas or create_drama. | |
| episode_to | No | Last episode number to include. Omit to go to the last episode. | |
| episode_from | No | First episode number to include (1-based). Omit to start at episode 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| content | Yes |