write
Create or replace a complete note in the Markdown notebook. Overwrites existing topics without prompting; for targeted changes use edit. Supports tags, title, and retention expiry.
Instructions
Create or replace a topic. Overwrites existing topics without asking; use edit for targeted changes.
Parent folders are created implicitly. Returns the resolved id and whether the topic was created or replaced. Rejects content over approximately 1 MB; split large memories into multiple topics. Retention controls expiry: permanent means never; session/today means 24 hours; week means 7 days; month means 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional list of tags | |
| title | No | Optional display title; defaults to the topic id | |
| content | Yes | Markdown body text (frontmatter is managed by the server) | |
| topic_id | Yes | Topic id, e.g. 'scratch/2026-08-05-note' | |
| retention | No | Expiry: permanent (default), session/today, week, month, never, or an ISO-8601 date/time. | permanent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |