enqueue_generate_script
Start generating the screenplay server-side as a background job. Use this ONLY when the user has EXPLICITLY asked to write/generate the script AND the idea (logline + outline) is already defined, or they uploaded a file to build it from (an uploaded screenplay keeps its scenes and lines as written). The job runs asynchronously — the response returns immediately with a jobId the client polls. Do NOT call this if the script already has scenes with text unless the user explicitly asks to regenerate. Prefer this over suggest_next_step({ action: "GENERATE_SCRIPT" }) when the user gives a direct command ("write the script", "generate it"); fall back to suggest_next_step when you want to offer it as an option.
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": {
"movieId": "<movieId>"
},
"name": "enqueue_generate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. |