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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | Yes | ||
| session_id | Yes |