manage_memory
Memory import, export, set-aside and wipe. preview_import: a markdown file of records without writing. import_markdown: writes them (an edited FlowState markdown export). export: JSON or markdown. set_aside / restore_aside / list_aside: hide or bring back a record (type + id). delete: every record except rules after a safety copy (clear_rules=true includes them); the answer includes the undo identifier. delete waits for the user's approval when approvals are on (the item then appears in the review queue, and the answer's next line names it). Requires project. Returns counts and ids.
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": {
"action": "<action>",
"project": "<project>"
},
"name": "manage_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | stale: unchecked for this many days. Default 60. | |
| kind | No | import (memory format): record kind for each memory. Default learning. | |
| text | No | import: the file contents. Max 200,000 chars. | |
| kinds | No | cleanup: which checks. Omit for all three. | |
| limit | No | stale: max facts. Default 20. | |
| model | No | Model name if known. Unknown names are omitted. | |
| paths | No | files_changed (required): the files you changed, repo-relative. | |
| action | Yes | The operation; see the tool description. | |
| format | No | import: memory (default; one memory per line or bullet) or flowstate_markdown (an edited FlowState markdown export). | |
| origin | No | import: where it came from, such as Claude or ChatGPT. | |
| reason | No | set_aside (required): why the record no longer applies. | |
| source | No | set_source (required) / mark_checked (optional): user_stated, ai_inferred or from_code. | |
| project | Yes | Project name or id. Required. | |
| record_id | No | delete / mark_checked / set_source / set_aside / restore_set_aside: the record's id. | |
| record_type | No | delete / mark_checked / set_source / set_aside / restore_set_aside: the record's type (all but delete: todo, decision, change, learning, problem, variable, method). |