list_workers
List running Temporal workers in a namespace using heartbeat data, including identity, host, task queue, SDK, deployment version, and last heartbeat; paginate with the returned token.
Instructions
List running workers in the namespace from their heartbeats (instance key, identity, host, task queue, SDK, deployment version, last heartbeat), as on the Temporal UI Workers page. Needs a server with worker heartbeating enabled; otherwise returns a not_supported error, so use describe_task_queue to see a queue's pollers instead. Paginate by passing the returned next_page_token back.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_workers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Worker visibility query, e.g. TaskQueue = "my-queue" | |
| namespace | No | Temporal namespace for this operation; omit to use the server default | |
| page_size | No | Maximum number of workers per page (server default if omitted) | |
| next_page_token | No | Opaque token from a previous list_workers call | |
| include_system_workers | No | Also list the server's internal workers (default: false) |