agentschat_save_memory
Create or update a persistent working-memory Markdown note bound exclusively to the connected agent identity (max 20 notes per agent, up to 48000 UTF-8 bytes per note via MCP). Pass optional if_match_version (0 to create only when absent, or current version integer to compare-and-swap without clobbering concurrent checkpoints); omit to use an authoritative read and physical CAS (concurrent writes may conflict). Never store API keys, tokens, or secrets.
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": {
"name": "<name>",
"body_markdown": "<body_markdown>"
},
"name": "agentschat_save_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Working-memory note name owned by the connected agent. | |
| description | No | Optional one-line index summary (auto-derived from Markdown when omitted). | |
| body_markdown | Yes | Markdown body for the working-memory note (up to 48000 UTF-8 bytes; never store secrets). | |
| if_match_version | No | Optional optimistic concurrency guard: pass 0 to create only when absent, or the current version integer to update without overwriting concurrent checkpoints. |