CodePanel
list_tasks

list_tasks

The CodePanel MCP tool that lists the agent app's tasks with their status, agent, repository, runs, cost and time.

On this page›

list_tasks returns the agent app's tasks, newest first: the work queued for a coding agent on one of your repositories, with where each stands and what its runs have cost so far. Nothing runs a queued task yet; it stays queued until the agent app can start runs.

When to call it

  • To see what is waiting on you: status: "needs_you" lists the tasks whose run asked the owner a question.
  • Before queuing work: check that the same task is not already queued or running.
  • To find an id: get_task and cancel_task take a task's id from here.

Inputs

Input Type Required Description
status queued or running or paused or needs_you or succeeded or failed or stopped no Only tasks in this status
repo string no Only this repository's tasks (owner/name)
oldestFirst boolean no List oldest first instead of newest first
detail boolean no Add each task's agent, activeMs, startedAt and updatedAt; compact without it
limit integer, at most 100 no
cursor string no nextCursor from the previous page

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

limit is 1 to 100 and defaults to 50.

What it returns

tasks, newest first. Each task has:

Field Meaning
id, repo, title The id other tools take, the repository as owner/name (null once it was removed), and the task's title. The prompt is in get_task
status queued, running, needs_you, succeeded, failed or stopped
agent { id, name, provider, modelId } of the coding agent that works it, or null once that agent is removed
runCount, usd, activeMs Runs so far, and their dollars and sandbox time awake added up
createdAt, startedAt, endedAt Epoch milliseconds; null until it starts or ends

The same step without MCP

Surface Form
HTTP API GET /tasks with the read scope

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to find a task you or another agent started, or to see what is queued, running or waiting on you (status needs_you). The account's agent app tasks, newest first. Compact by default: id, repo (owner/name), title, status (queued|running|needs_you|succeeded|failed|stopped), agentName, runCount, usd, createdAt and endedAt (epoch ms or null); detail: true adds the agent ({ id, name, provider, modelId }), activeMs, startedAt and updatedAt. Filter with status and with repo (owner/name); oldestFirst lists oldest first. Paged: limit (default 20, at most 100) and cursor (nextCursor from the page before, with the same filters). A local runner with a checkout of the repository claims a queued task; with none running it stays queued. Use get_task for one task's runs.

Last updated