Save a page as a template
save_page_as_templateCopies an existing page (and subpages by default) into the space's _templates folder for reuse with create_page_from_template; the original stays unchanged.
Instructions
Copies an existing page (subpages included unless includeChildren is false) into the space's _templates/ folder so it can be reused with create_page_from_template; the original is left as it is. {{date}}, {{author}} and {{title}} written in a document are filled in when a page is made from the template. Requires a write-scoped token and an editor role in the space; the copy carries only what the caller may see. Returns the template page (its id is what create_page_from_template takes), plus its url.
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": "save_page_as_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the page to copy into the templates | |
| title | No | The template's name; omitted: the page's own title | |
| description | No | One line saying what the template is for; shown by list_templates | |
| includeChildren | No | Bring the page's subpages along (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page id | |
| icon | No | Emoji icon, if the page has one | |
| kind | Yes | Page kind: doc, board, table, form, base, canvas, artifact, pdf or office | |
| path | Yes | Path relative to the space root | |
| cover | No | Cover image URL, if the page has one | |
| order | Yes | Position among its siblings | |
| space | Yes | Space slug the page belongs to | |
| title | Yes | Page title | |
| status | Yes | Page status | |
| updatedAt | Yes | Last change, ISO timestamp |