Skip to Content
ReferenceToolsagent_cancel

agent_cancel

Stops a running agent_prompt by its task. What the agent did until then stays done.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
taskintegeryesThe task of an agent_prompt answer.

Result

NameTypeRequiredMeaning
stoppingbooleanyesThe run was asked to stop; task_output shows when it has.
taskintegeryes

Examples

{ "name": "agent_cancel", "arguments": { "machine": "<machine>", "task": 0 } }

Limits

The call times out after 15 s (timed_out). Available since version 0.1.13. A refused or failed call returns one of the error codes.