Skip to main content
Glama

Steer a running turn

steer_agent

Send a new instruction to a running agent turn without interrupting its current work, so the agent incorporates the message and continues with session memory intact.

Instructions

Steer a running turn. Send a new message to a turn that is already running, without losing what the agent is doing. This is what typing into a coding agent while it works does: the instruction is taken into account and the work continues.

Where the harness has a native mid-turn primitive (Claude Code, Codex, pi, Prime Agent) nothing is interrupted and the response has native: true. Where it does not (OpenCode), Boat interrupts that turn and immediately continues the SAME conversation with the instruction, keeping the session and its memory, and the response has native: false.

Refused with 409 no_running_turn when the conversation has nothing in flight; queue work with POST /prompt instead. error.details.reason says why: turn_ended (with error.details.lastTurn.status and .error of the newest turn), turn_not_started (the turn is starting; retry in a moment), no_turn, not_running (the sandbox is not running) or delivery_failed (the sandbox did not accept the steer; check the turn before sending more work). The steer shows up in GET /events as a steer event. See Integrated agents.

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": {
      "sandboxId": "<sandboxId>",
      "message": "<message>"
    },
    "name": "steer_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesThe extra instruction for the running turn.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.
conversationNoConversation id to steer. Omit to steer the sandbox's most-recently-active conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare non-read-only, non-idempotent, open-world, non-destructive, but the description goes well beyond them: it discloses the two delivery modes (native mid-turn vs. interrupt-and-continue on OpenCode), the `native` flag in the response, and the emission of a `steer` event. It also enumerates error reasons, though it could note that a non-native steer terminates the current turn, which is the closest thing to a side effect here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core operation and the mechanics, then the error taxonomy. The parenthetical error-reason list is dense but every clause carries information; the closing documentation link is the only filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by explaining the `native` response flag, the event visibility, and the full 409 error reason set with actionable follow-ups. For a non-idempotent mutation on a live agent, nothing an agent needs in order to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents sandboxId, message, and the conversation default. The description adds no meaning beyond that (e.g., no note on message length limits or how a steer interacts with queued prompts), so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('steer a running turn') and immediately clarifies the semantics with 'send a new message to a turn that is already running, without losing what the agent is doing.' The analogy of typing into a working coding agent makes the operation unmistakable and distinguishes it from interrupting or prompting anew.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the exclusion: refused with 409 no_running_turn when nothing is in flight, and says to queue work with POST /prompt instead. It also names the conditions under which the steer is native versus interrupt-and-continue, so an agent knows what environment behavior to expect before calling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.