memory_export
Export all agent knowledge, sessions, relations, and action logs as JSON for backup or migration. Supports paged snapshots and optional project filtering to move data safely.
Instructions
Export all knowledge as JSON for backup or migration. Includes knowledge, sessions, relations and the agent action log. Pass limit to export one page of a snapshot: the end line then carries complete=false and a next_cursor to pass back as cursor until complete=true. Pages of one export share a snapshot id and can be imported only as a complete, contiguous sequence. Sessions, relations and the action log come with the first page only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "memory_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Records per page; omit for one unpaged export. Default with a cursor: 1000. | |
| cursor | No | Opaque next_cursor from the previous page's end line | |
| format | No | JSON includes sessions and relations; JSONL streams knowledge with a header and completeness footer. | json |
| project | No | Export only this project (optional) | |
| save_to_file | No | Save to <memory-dir>/backups/ (default true) |