Write memory
memory_writePersist user preferences, facts, commitments, or events for future sessions. Automatically generate a summary, tags, and importance rating to enable reliable recall in later conversations.
Instructions
Persist something worth remembering about a user (a preference, fact, commitment, or event). Bedrock derives a short summary, tags, importance (salience), and kind. Call this whenever the user reveals durable information you should recall in future sessions.
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": {
"userId": "<userId>",
"content": "<content>"
},
"name": "memory_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | Stable id namespacing this user's memories. | |
| content | Yes | The information to remember, in plain language. | |
| salience | No | Optional importance override in [0,1]; otherwise Bedrock decides. | |
| sourceSession | No | Optional originating session/conversation id. |