Cancel a subagent invocation
cancel_agentStop a running agent invocation using its invocation ID to retrieve the final cancelled or already-terminal result. Use this action when you need to end active subagent work.
Instructions
Stop one invocation and return its final cancelled or already-terminal result.
Use this only when the Manager intends to stop active provider work; use wait_agent to observe work without stopping it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invocation_id | Yes | Invocation ID returned by start_agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| result | Yes | ||
| invocation_id | Yes |