Preview saving a gig as a template
preview_save_event_as_templatePreview what saving a gig as a reusable template would keep and drop: retained sections with counts, excluded sections with reasons, what is always left out (people, money, client data), the existing templates a new version could replace, and a preview_token. Pass target_template_id when the user is replacing an existing template — that mode always excludes attachments, and previewing without it mints a token bound to the wrong mode, which save_event_as_template will reject. Writes nothing — pass the preview_token to save_event_as_template to save exactly what was previewed.
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": {
"event_id": "<event_id>"
},
"name": "preview_save_event_as_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | section keys to drop from the template | |
| include | No | section keys to keep that the template would otherwise drop | |
| event_id | Yes | the gig to preview as a template | |
| target_template_id | No | existing template id being replaced with a new version, if any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: { retained, excluded, always_left_out, existing_templates, preview_token } } | |
| error | No | when ok is false |