list_tasks
Retrieve dispatched tasks oldest first, filtering by status, backend, repository, group, or time to monitor queued, running, completed, failed, timed-out, or cancelled work.
Instructions
List dispatched tasks, oldest first.
Args:
status: Optional filter — running, completed, failed, timed_out or cancelled.
backend: Optional filter by harness, e.g. "codex".
waiting_for_resource: Optional resource name: only launches that have not started and are
still queued for it (launch_state: "waiting_for_resources"). Uses the unpaged listing.
The unpaged listing also carries launches that are waiting for resources and have no task
record yet (pending_launch: true); the indexed page does not.
Includes tasks from earlier harflow_mcp server processes, marked recovered: true.
Supplying group/title_contains/repo/since/limit/fields/cursor selects a bounded newest-first
indexed page (default limit 50, maximum 100), rather than the legacy oldest-first list.
since is an inclusive ISO8601 timestamp with timezone. fields selects compact names. Accepted
fields, in sorted order: background_idle_seconds, backend, dispatch_origin, duration_seconds,
finished_at, group, input_channel, last_captured_output_at, needs_direct_lookup,
needs_reconciliation, note, observation_mode, observation_note, observed_exit, output_capture,
owner, parent_task_id, persisted_status, process_identity_state, recovered, repo_path,
responding_server, root_task_id, session_id, started_at, status, task_id, title. The repository
field is repo_path, not repo. Identity and status fields are always included: task_id, status,
needs_reconciliation, needs_direct_lookup, persisted_status, observed_exit, process_identity_state.
An unknown name, an empty list, a non-string entry and a list longer than the accepted set each
produce their own error, and the error names the bad entries and lists the accepted ones.
Accepted filters: group, title_contains, repo, status, backend, since, predecessor_task_id.
Filters run before pagination;
cursor binds filters. Status is the indexed observation: inspect needs_reconciliation and
observed_exit before interpreting it. See docs/compact-task-reads.md for supported fields,
bounded-header matching and direct detail lookup. Listing never replays task logs.
When status_reconciliation_pending is true, results are incomplete: retry the same filters
without a cursor as directed by polling_guidance, even if has_more is false.
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_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| group | No | ||
| limit | No | ||
| since | No | ||
| cursor | No | ||
| fields | No | ||
| status | No | ||
| backend | No | ||
| title_contains | No | ||
| waiting_for_resource | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |