Templates
A template is a workspace-scoped page scaffold. When an author or agent creates a page from template, the template body is rendered with variable substitution and the result becomes the page source.
Authoring a template
Open Settings → Templates → New template. The editor has four tabs:
- Source — the template body. Use
{{variable_name}}placeholders for substitution. - Preview — renders the source with empty placeholders so you can see the structure.
- Properties — name, description.
- Used by — pages that were instantiated from this template.
Save with the Save action. Templates are workspace-scoped; only write-level members can create or update them.
Using a template
The workspace shell create menu has a From template entry. Selecting it:
- Lists available templates with a description and last-updated.
- After you pick one, the dialog asks for any variable values declared with
{{var}}placeholders in the source. - Submitting creates a new page from the rendered source.
Variables that are not supplied are left as literal {{name}} in the new page; the create dialog surfaces a warning toast when unresolved variables remain.
MCP
Agents can call create_template, update_template, render_template, and create a page with create_page passing a template_id. The CLI mirrors these commands as factory templates create, factory templates render, etc.
Deletion
Only admins can delete a template. Pages already created from the template are unaffected by deletion.