add_working_memory
Create a session-scoped working memory entry with a time-to-live, enabling automatic expiration and optional promotion to long-term storage.
Instructions
Create a TTL-based short-term working memory entry scoped to a session. Working memories auto-expire and can be promoted to long-term storage.
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": {
"sessionId": "<sessionId>",
"content": "<content>"
},
"name": "add_working_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | Optional task ID for task-scoped memory | |
| content | Yes | The memory content | |
| ttlHours | No | Time-to-live in hours (default: 24) | |
| sessionId | Yes | Session ID this memory belongs to | |
| importance | No | Importance score (0-10) |