create_memory
Write a note into Claude, Codex, or Grok first-party memory markdown for session handoff history; errors if the target file exists.
Instructions
Write a note into Claude, Codex, or Grok first-party memory markdown. Notes are untrusted inert history. Cursor, OpenCode, Gemini, AGY, and Copilot have no first-party memory store. Errors if the target file already exists.
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": {
"agent": "<agent>",
"content": "<content>"
},
"name": "create_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory to encode as a Claude project slug | |
| file | No | Markdown basename; default is a slug from the note or note-<utc>.md | |
| agent | Yes | claude, codex, or grok | |
| content | Yes | ||
| project | No |