interrupt_agent
Stop an agent that is working right now, so it puts down what it is doing and listens. Use this when an agent has gone the wrong way and you want to redirect it — follow with send_message to give it new direction. Name the agent as list_agents shows it, and pass chat when stopping by agent name. session_id targets one exact session and does not take chat.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "interrupt_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Same as agent. agent wins when both are set. | |
| chat | No | Chat id for stopping by agent name (the `bubble_id` from `create_chat` or `list_chats`). Required when stopping by agent name; not used with session_id. | |
| agent | No | Name of the agent to stop, as shown by `list_agents`. | |
| session_id | No | Stop one exact running session instead of naming an agent. Only use this when you already have a session id. |