Cancel a subagent invocation
cancel_agentStop an active agent invocation and retrieve its final cancelled or already-terminal result. Use this when an agent manager needs to halt provider work; observe without stopping using wait_agent.
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 |