Memory write
memory_writeSaves a durable, typed memory to the persistent brain, requiring user, feedback, project, or reference classification so facts stay organized and replaceable by title.
Instructions
Save a durable, TYPED memory and write it back to the brain.
type (REQUIRED) = one of: user (who the user is / preferences) ·
feedback (how you should work — corrections & confirmed approaches) ·
project (ongoing work, goals, status — give it a review date) ·
reference (pointers to resources/URLs/IDs). An untyped memory is REFUSED
so the brain stays sorted. Only store DURABLE facts (not session chatter),
nothing already in code/git, and NEVER secrets (those go to the vault:
secret_set via integration_call). Writing the same title again REPLACES that
memory (read it first and fold the old content in); the dedup hint flags
related titles to merge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated, e.g. "garden, mqtt" | |
| type | Yes | Required — one of the four types above | |
| scope | No | Memory area: "shared" (default) or "users/<id>"; a person limited to their own area stays there anyway | shared |
| title | Yes | Short title; it names the memory | |
| review | No | YYYY-MM-DD: from then on cortex_start lists it as due for review | |
| source | No | Where the fact comes from, e.g. a URL; default "session" | |
| content | Yes | The fact itself, in Markdown | |
| project | No | Project this fact belongs to, e.g. "Birdhouse"; empty = general | |
| expected_version | No | The version you read with memory_read; refused if it changed since. 0 = don't check |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |