Publish template
publish_templatePublish a template's draft: the changes saved by update_template, add_objects, update_objects and remove_objects (or made in the web editor) become the published version, which is what the share link, the presentation, teammates and export_pptx(template_id) show. A new entry is added to the version history; the previous published version stays there and can be restored on the web. Requires a Pro account. Input: the template id, an optional one-line note (up to 100 characters) for the history, and optionally expected_draft_version (the draft_version you last saw) so a draft someone else changed since is not published by mistake. Returns version_number (the history number, v1, v2, ...), published_version and the url. Errors: pro_required, not_found, no_draft (there are no unpublished changes), conflict (the draft changed since expected_draft_version; read it again with get_template(draft: true)), invalid_input.
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": {
"id": "<id>"
},
"name": "publish_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template id from list_templates. | |
| note | No | A short note on what changed, one line, up to 100 characters. | |
| expected_draft_version | No | The draft_version from get_template(draft: true) or your last save. Given, the call fails with conflict if the draft changed since. |