Generate a draft script
generate_scriptDraft a script from a plain-language goal. Spends the community's credits (every model call, repairs included), and returns blocks WITHOUT creating a project — pass them to create_project (script.blocks, plus scoring_enabled: true when the draft's scoring.enabled) or replace_script. Show the person author_notes before the project opens: it lists what the model was unsure of. Put anything current (dates, line-ups, odds) in facts; the model's knowledge has a cutoff.
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": {
"intent": "<intent>"
},
"name": "generate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | The `plan` returned by plan_script, if you called it. | |
| type | No | `poll` asks for a one-question poll. Omit to let the intent decide. | |
| facts | No | Facts the model cannot know and must use as given (dates, line-ups, results, odds). | |
| intent | Yes | The goal of the conversation in plain language, e.g. 'Measure how satisfied members are with last week's event'. | |
| answers | No | Answers to the plan's questions: question `id` -> answer. | |
| quality | No | `quick` (fast, ~700 credits) or `deep` (stronger, ~24,000-48,000 credits). Defaults to `deep` on paid plans, `quick` otherwise. | |
| language | No | Language respondents read: any language's name (`French`, `Tagalog`) or a locale code (`fr`). Defaults to a language the intent names, else the community's. | |
| session_id | No | The `session_id` returned by plan_script. | |
| admin_language | No | Language the plan and `author_notes` are written in for the person you work for. Never sets the project's language. Omitted: inferred from the intent, and `notices` say so. | |
| question_count | No | How many questions to draft, 1-20. Omit to let the model choose. |