agent_control
Control running agent sessions by aborting stalled tasks, steering with new instructions, compacting context, or resetting sessions—resolving stuck agents and redirecting workflows.
Instructions
Control running agent sessions: abort stuck agents, steer them in a new direction, compact their context, or reset them. Uses the gateway /tools/invoke API. If the gateway does not support a given action, returns a clear error with CLI fallback instructions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"sessionKey": "<sessionKey>"
},
"name": "agent_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Session control action to perform. | |
| message | No | Required for "steer" — the new direction or instruction to inject. | |
| sessionKey | Yes | The session key to control. |