Generate a course
generate_courseStarts writing a draft course from a prompt, optionally grounded in a URL. Returns a job id immediately — writing takes tens of seconds — then poll get_generation until status is completed or failed. Counts against the workspace's monthly generation allowance (5 on Sandbox, 100 on Build, 500 on Scale); once it is spent, this fails until the next calendar month.
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": {
"prompt": "<prompt>"
},
"name": "generate_course"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | BCP-47 code for the language to write the course in, e.g. 'en' or 'ar'. Reading direction follows from it. Omit to write in English. | |
| prompt | Yes | What the course should teach, in plain language (up to 2000 characters). | |
| audience | No | Who the course is for, e.g. 'support agents in their first month' (up to 200 characters). | |
| sourceUrl | No | A public web page to ground the course in; its text is read before writing. Omit to write from the prompt alone. | |
| screensTarget | No | Roughly how many screens to write, 1 to 20. Omit for about 8. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The generation job id. Pass it to get_generation. | |
| status | Yes |