Draft episode script
draft_episode_scriptWrite an episode's scene-by-scene script: draft it from premise, or adapt the writer's own scriptText; pass exactly one (400 for both or neither). It replaces the episode's scenes and returns { episode, scenesGenerated, source, sceneCountCheck }; review and edit with save_episode before generate_episode. groundInResearch adds web research to a premise draft. The series needs at least one character, and an episode that is generating is refused. Spends Galatic.AI credits (402 when the budget is short). seriesId is the flowId of the Flow Studio flow that holds the series (from list_flows).
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": {
"seriesId": "<seriesId>",
"episodeId": "<episodeId>",
"context": "<context>"
},
"name": "draft_episode_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| premise | No | What happens. Send this or scriptText, not both. | |
| seriesId | Yes | ||
| episodeId | Yes | ||
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| scriptText | No | A finished script to adapt into scenes. Send this or premise. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| groundInResearch | No | Premise drafts only: ground the draft in web research (costs more). |