list-sessions
Retrieve a paginated list of execution sessions for a workflow, with filters for production or test runs, including session IDs, status, and timestamps.
Instructions
Get a paginated list of all execution sessions for a workflow, including session IDs, status, timestamps, and execution mode. Can filter between production and test runs of draft workflows. Returns user-friendly messages when no sessions exist, with pagination support for workflows with many execution histories.
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": {
"workflowId": "<workflowId>"
},
"name": "list-sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageNumber | No | The zero-indexed page number of the response data | |
| workflowId | Yes | The ID of the workflow to list sessions for | |
| sessionMode | No | Optional filter to return PROD or TEST sessions | PROD |