Skip to main content
Log in and select your workspace before running these commands. Use --output json to inspect full results. Note IDs must be UUIDs; template IDs must be exact saved IDs from st notes templates list, not template titles or URLs.

Note templates

List accessible templates and read their instructions and sections:
Update a template you own:
sections.json contains the entire replacement list, in heading order:
Omit a flag to preserve that field. --context "" clears instructions, and a sections file containing [] clears all sections. Read the existing template before replacing its section list. Only the owner can edit; shared and built-in templates you do not own are read-only. Template changes affect later enhancements. Existing enhanced notes change only when you explicitly re-enhance them. Template create and delete commands are not part of this command group. See note templates for the existing settings controls.

Enhance or revise a note

Read the saved note first:
Use its revision and inspect ai_notes. The current enhanced entry matches last_note_template_id. Revise that saved enhanced content with instructions:
To revise a specific saved enhanced entry, add --enhanced-note <enhanced-note-id>. Instruction-only revision requires an existing non-empty enhanced entry. Regenerate from the original user notes and transcript with a different template:
--instructions is optional when --template is present. Use --enhanced-note for instruction-only revision, or --template for re-enhancement. Neither changes the original notes, transcript, or saved template. When --expected-revision or --operation is omitted, the operation adapter supplies the current revision or a new UUID. A final concurrent edit still prevents the enhancement from overwriting newer content.

Check enhancement status

Without --operation, the command reads the latest operation. Status is idle, running, completed, or failed. running content is a preview; only completed with ai_note confirms a durable save. A running response includes an operation ID you can check with this command, even after disconnecting. Failed enhancements return an error and do not save their preview. A stale revision, conflicting retry input, or another running operation also fails. Read the latest note before retrying a conflict. Reuse --operation only for an identical request; use a new UUID for a new request. Only the note owner can start or observe an enhancement. Custom agents given read access to a note cannot enhance it. See the enhancement API and MCP operations.