How it works
When you add the advisor tool to your tools array, the executor model determines when to call it, like any other tool. When the executor calls the advisor:
- The executor emits a
server_tool_useblock withname: "advisor"and an emptyinput. The executor signals timing, and the server supplies context. - Anthropic runs a separate inference pass on the advisor model server-side. The advisor runs under its own Anthropic-supplied system prompt and receives the executor's full transcript as quoted context in its input. That transcript includes your system prompt, the tool definitions, the prior turns and tool results, and the text the executor has produced so far in this turn.
- The advisor's response returns to the executor as an
advisor_tool_resultblock. - The executor continues generating, informed by the advice.
All of this occurs inside a single /v1/messages request, with no extra round trips on your side. The exception is a turn that pauses mid-call, which you resume with a follow-up request (see Resuming a paused turn).
The advisor itself runs without tools and without context management. Its thinking blocks are dropped before the result returns. Only the advice text reaches the executor.