Push working context
push_contextStore a key/value entry in a session's working memory (short-lived
scratch space). Pushing the same (session_id, key) again replaces the
previous value. Read it back with get_context, or with
retrieve_memories by passing session_id.
Args:
session_id: Session identifier.
key: Entry key.
value: Value to store; a string is stored as {"data": value}.
ttl_seconds: Seconds until the entry expires. 0 (default) = never.
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": {
"session_id": "<session_id>",
"key": "<key>",
"value": "<value>"
},
"name": "push_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| session_id | Yes | ||
| ttl_seconds | No |