Create or revise a template draft
super_template_saveWrite a template draft only you can publish from. Without expectedVersion it creates (refused if the slug exists); with it, it revises the head (refused if the head moved past it), and a revision that changes nothing cuts no version. A json slot needs schema. Runtime files (≤512 KiB decoded) need a json slot and an index.html with one <script id="sa-template-values" type="application/json">. Others build from it only once super_release_template releases it; a revision never changes a released version.
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": {
"slug": "<slug>",
"title": "<title>",
"description": "<description>",
"spec": "<spec>"
},
"name": "super_template_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| demo | No | Slug of your artifact to link as the demo (linked once public). "" clears it. | |
| jobs | No | What a person hires it for; the first is primary. Create default: from `kind`. | |
| kind | No | `dashboard`: a page that mostly shows live data — a label, not a capability. | |
| slug | Yes | Kebab-case, 3–64 chars. Permanent. | |
| spec | Yes | `slots`, `declaration` (every instance’s policy), optional `comments`, `keywords` (searched), `examplePrompts`. | |
| files | No | Runtime files, `index.html` required. Omitting them on a revision drops the runtime from that new draft version only. | |
| title | Yes | ||
| prompt | No | A prompt a person copies to ask for one. | |
| sample | No | `{"values": {…}}`, rendered in the preview. | |
| audience | No | 1–3, or `everyone` alone (the default). | |
| category | No | Deprecated; read as `jobs` when `jobs` is absent. | |
| guidance | No | Optional notes for whoever fills it. | |
| useCases | No | Things to build from it; the build prompt draws on them. | |
| changeNote | No | Revisions: one line on why, for the changelog. | |
| companions | No | Extra artifacts each publish makes at {slug}-{role}, same values (e.g. a stage for a host). Bind the primary with `source: {artifact: "@primary", streams}`. Released: add, never remove. | |
| description | Yes | ||
| installAfter | No | Your note, appended to the build prompt as a suggestion. | |
| samplePublic | No | The sample may appear on the public listing page. | |
| expectedVersion | No | The version you revised. Present: revise. Absent: create. | |
| installArchetype | No | After install: `scenarios` (default) offers three builds; `explainer` builds one from the sample; `interview` asks three questions first. |