Import a script
import_scriptWrites a whole document into a drama in one transaction: "json" (shortdrama.script.v1, as export_script produces) or "fountain" (any screenplay; sections "# Episode N: Title" become episodes, scene headings become scenes and locations, character cues become characters). Characters, locations and props are matched by name (created or updated), episodes by number, and every episode that includes scenes has its script replaced. Ideal for writing a season locally and sending it at once. Run lint_drama afterwards.
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>",
"format": "<format>",
"content": "<content>"
},
"name": "import_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Format of the attached script: "json" (shortdrama.script.v1) or "fountain". | |
| content | Yes | Fountain text, or the JSON document (object or string) | |
| drama_id | Yes | The drama id (drm_…), from list_dramas or create_drama. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| props | Yes | ||
| scenes | Yes | ||
| drama_id | Yes | ||
| episodes | Yes | ||
| locations | Yes | ||
| characters | Yes |