List sessions
list_sessionsRetrieve and filter an agent's sessions by state, type, trigger, or creator with cursor-based pagination and free-text search to review execution history.
Instructions
List sessions for an agent with cursor-based pagination, optional filtering, and search. Read operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter sessions by type (e.g. `api`, `web`, `slack`). | |
| state | No | Filter sessions by state. | |
| cursor | No | Cursor for the next page of results. Use the `next_cursor` value from a previous response. | |
| search | No | Free-text search query to filter sessions by name or content. Also accepted as `search_query`. | |
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| agent_id | Yes | ID of the agent whose sessions to list. Also accepts the reserved aliases `gumball` and `analytics`. | |
| page_size | No | Number of sessions to return per page. Defaults to `20`, maximum `100`. | |
| sort_order | No | Sort order for the results (e.g. `newest` or `oldest`). | |
| trigger_id | No | Filter sessions by the trigger that initiated them. | |
| creator_user_id | No | Filter sessions by the user who created them. |