list_sessions
List recent working sessions from the workspace, paginated with cursors, to discover what the human was working on when no session_id is available.
Instructions
List sessions in the workspace the configured API key can read, newest first, with cursor pagination. Read-only, no side effects. Returns {sessions: [{session_id, title, summary, captured_at, ai_tags}], next_cursor}. Pass any session_id to the resume tool for the full context; pass next_cursor back as cursor to fetch the next page (null means no more pages). Use this to discover what the human was working on when you do not already have a session_id — if you have one, call resume directly. Sandbox keys see the demo workspace. Errors: a malformed cursor or since value returns an error stating the expected format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of sessions to return, between 1 and 50. Values outside the range are clamped rather than rejected. | |
| cursor | No | Opaque pagination cursor from a previous response's next_cursor. Omit to start from the newest session. Malformed cursors are rejected with an error. | |
| since | No | Only return sessions captured at or after this ISO 8601 timestamp, e.g. '2026-06-01T00:00:00Z'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessions | Yes | Sessions, newest first. | |
| next_cursor | Yes | Pass back as `cursor` to fetch the next page; null when there are no more pages. |