Plan a generation
plan_generationWork out what generating an email, a PDF, a Substack post or a document would use, rendering nothing and spending no draft or credit. Give it the kind and whatever the user has said so far; it answers with the template it would use and that template's fields with their defaults, which required fields are still missing, the brand kit it would resolve to and the other kits with their ids, the page, orientation and footer a PDF would take from the kit, the templates the user has saved, the free drafts left, the unlock cost, and ready. Call it once before generate_email or generate_pdf, then generate in the same turn unless one open choice would change the result.
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": {
"kind": "<kind>"
},
"name": "plan_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | What would be generated. | |
| page | No | The PDF page size, if they named one. | |
| align | No | The text alignment, if they asked. | |
| props | No | Template text fields the user gave, all strings. | |
| title | No | The PDF title, if they gave one. | |
| header | No | The email header style, if they asked. | |
| subject | No | The email subject, if they gave one. | |
| markdown | No | The body, if they gave one. | |
| appearance | No | Light or dark, if they asked. | |
| footer_text | No | The PDF footer line, if they gave one. | |
| template_id | No | The template the user named, if any. | |
| brand_kit_id | No | A brand_kit_id from list_brand_kits. | |
| page_numbers | No | PDF page numbers, if they asked. | |
| saved_template_id | No | A saved_template_id from list_templates; its inputs seed the ones you pass. |