list_runners
The CodePanel MCP tool that lists the account's local runners, one per machine: online or offline, last check-in, and the repositories each can work.
On this page›
list_runners lists the account's local runners, one per machine, with whether each is checking in and the repositories it has a checkout for. It needs the read scope.
When to call it
- Before
start_task, to see whether a runner will claim the task: one must beonlinewith the task's repository in itscheckouts. - When a task stays queued, to see which machine is offline or has no checkout of its repository.
Inputs
| Input | Type | Required | Description |
|---|
It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.
What it returns
{ runners, online }, the runners most recently heard first. Each has its runnerId (the stable id the runner keeps in its directory; null for a runner from before runner ids, until it next checks in), name (the machine's host name), state (online while it checks in, offline after 3 missed heartbeats, unknown for a runner that sends none), lastSeenAt, registeredAt, heartbeatMs and checkouts (each owner/name, as its last check named them). online counts the runners online now.
A second machine adds a runner; it never replaces the first. A run is claimed by one runner, and get_run's runner is that runner's heartbeat and name. A runner silent for 30 days is dropped the next time another of the account's runners starts.
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | GET /tasks/runners with the read scope |
| CLI | codepanel runners |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it before start_task, or when a queued task does not start, to see which machines can work it. Lists the account's local runners, one per machine, most recently heard first: runnerId, name (the host name), state (online while it checks in, offline after 3 missed beats, unknown for a runner from before heartbeats), lastSeenAt, and checkouts (the repositories it claims tasks for). A queued task starts on a runner that is online with a checkout of its repository; with none, connect one in the desktop app's Settings → Runners. online counts the runners online now.
Related
start_task: queue a task for a runner to claim.get_run: the run's own runner, by its heartbeat.- Desktop app: connect a runner and add checkouts.