Write memory
writeStore a memory entry into a namespace. Use this constantly — for facts, rules, lessons, patterns, goals, progress, decisions, preferences, project context, people, workflows, inferences, and anything the user implies. One idea per entry. Write with enough detail that a future session can act on this memory cold — include what, why, edge cases, and consequences. Every entry written to Stash is a token you can drop from your active context window, making every subsequent LLM call cheaper. When in doubt, write it. An unwritten memory is a lost memory and a cost you keep paying. Always name the namespace: there is no default, so pass path (or namespace) — write({path: "/projects/", content: "..."}) — and pass "/" explicitly to write to the root.
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": {
"content": "<content>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Namespace to write to, e.g. /projects/myapp. Required unless 'namespace' is given instead. There is no default: pass "/" explicitly to write to the root. | |
| content | Yes | Memory text to store. | |
| namespace | No | Alias for 'path'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brain | Yes | ||
| tokens | Yes | ||
| created_at | Yes | ||
| entry_uuid | Yes | ||
| next_actions | No | ||
| namespace_path | Yes | ||
| similar_existing | No |