CodePanel
bulk_tasks

bulk_tasks

The CodePanel MCP tool that stops or retries up to 100 agent app tasks in one call, each on its own.

On this page›

bulk_tasks stops or retries many agent app tasks in one call. Each task is handled on its own, as cancel_task or retry_task would handle it. It needs the tasks:write scope.

When to call it

  • To stop a batch of tasks going the wrong way, such as everything queued on a repository.
  • To retry a batch that failed for one cause now fixed, such as a budget stop.

Inputs

Input Type Required Description
taskIds array of strings, at most 100 yes Ids of tasks, from list_tasks
action stop or retry or pause or resume or cheaper yes

It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

taskIds: 1 to 100 task ids, from list_tasks. action: stop or retry.

What it returns

{ done, failed, results }, each result { taskId, ok, error }. A task that was refused (not found, already ended for stop, or cancelled, succeeded or still running for retry) leaves the others done, with its error. A runner on this machine is woken to claim the retried tasks.

The same step without MCP

Surface Form
HTTP API POST /tasks/bulk with the tasks:write scope
CLI codepanel task bulk stop|retry <taskId...>

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to act on many tasks in one call instead of one call each: taskIds (1 to 100, from list_tasks) and action stop, retry, pause, resume or cheaper. stop and retry act as cancel_task and retry_task; pause and resume act as pause_run and resume_run on each task's run still going, which parks at its next turn and keeps its worktree; cheaper acts as switch_model with cheaper: true, moving each run going to the agent one step cheaper at its next turn. Each task is handled on its own: one refused (not found, already ended for stop, cancelled or succeeded or running for retry, no run going or an external agent CLI for pause) leaves the others done and says why in its result's error. A runner on this machine is woken to act at once. Needs tasks:write. Returns { done, failed, results }, each result { taskId, ok, error }.

Last updated