Call a tool whose registration cannot be represented by an exported
ToolRef, such as a tool created from a loop, runtime configuration,
or an OpenAPI document.
Prefer useCallTool for statically declared tools. This explicit
escape hatch requires callers to supply the contract because TypeScript
cannot infer runtime-only registrations.
Type Parameters
ArgsextendsRecord<string,unknown>
Explicit tool argument object type.
Result = unknown
Expected structuredContent type for a successful result.
Call a tool whose registration cannot be represented by an exported ToolRef, such as a tool created from a loop, runtime configuration, or an OpenAPI document.
Prefer useCallTool for statically declared tools. This explicit escape hatch requires callers to supply the contract because TypeScript cannot infer runtime-only registrations.