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.
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. |