Set Session Expiry
set_session_expirySet or remove an expiration date for a session. Expired sessions are excluded from search results but not deleted, and can be restored later.
Instructions
Set or clear an expiry date on a session.
After expires_at passes, the session is excluded from search_sessions, get_recent_sessions, and the auto-load hook. The session is NOT deleted -- recover it with search_sessions(include_expired=True). Pass expires_at=None to clear a previously set expiry.
Args: session_id: ID of the session to update expires_at: ISO 8601 date string (e.g. '2027-01-01T00:00:00Z'), or None to clear
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>",
"expires_at": "<expires_at>"
},
"name": "set_session_expiry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | Yes | ||
| session_id | Yes |