Expand description
A host’s call of a tool object outside any turn, through the session’s
whole tool pipeline — permission, PreToolUse, tool.around, the call,
PostToolUse, telemetry — the way the model’s calls go, beside a turn
that may be running. The tool is handed over, so it need not be one the model can call.
The call itself is the host’s approval: what the session would ask about
runs, what its rules deny or its mode refuses does not. Nobody is asked
anything, neither about it nor about the calls it makes. permission_rules
hold after the session’s own for this call and the calls it makes: a deny
refuses in any mode, an allow answers only what the mode would ask.
Structs§
- Host
Call Outcome outcomeErr: no answer — refused, invalid, failed, the session gone.by_middleware: the answer is not the tool’s own — atool.aroundgave or changed it, or atool.resultrewrote it.stopped: the host or the session’s end told the call to stop.