Write a memory file
memory_writeCreate or replace one UTF-8 text file in private agent memory. Use an optional ETag check to prevent overwriting a file that changed since it was read.
Instructions
Create or replace one file in your memory (UTF-8 text, up to 10 MB). Paths are plain segments of letters, digits, _ . - separated by '/'. journal/ is not writable here: use journal_append.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "memory_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | e.g. 'projects/keephaven.md' | |
| content | Yes | the whole new content of the file | |
| if_match | No | etag from memory_read; the write fails if the file changed since |