Mew. Work. Docs

Built-in tools›Agent orchestration

Stop a task

task_stop
Group
Agent orchestration
Turned on by
Comes with any tool that starts background work (subagents, workflows, background shells).
Approval
Not reviewed: runs without asking, within the limits on this page.
Profile key
tool.task_stop.description

Stops one running task: a background command, a subagent or a workflow run.

The model names the task by the address task_list prints for it. A background command is shell:<id>; a subagent or a workflow run is its bare name, and a workflow run also answers to workflow:<runId>. The stop is the same as the button on the task's row in the Tasks pane (More options → Tasks). The task's result still reaches the model, with what it had produced before the stop, the way any task result does (see task_wait).

Good to know

  • It refuses a terminal session, which is yours; a dev server, which preview_stop stops; and a task that already finished.
  • A subagent can stop only the tasks it started itself. A task another agent started is refused, and you can still stop it from the Tasks pane.
  • It has no row in the tool picker. The conversation gets it, with task_wait and task_list, whenever it has a tool that starts background work. It never asks for approval.

Parameters

ParameterTypeDetails
task required
Task address
stringAddress from task_list. shell:<id>. Child name. Run name or workflow:<runId>.