Skip to content

dispatch

function dispatch(server: ToolkitDefinition, call: ToolCall): Promise<ToolCallResult>;

Dispatch one normalized call against a server definition.

This is the seam the in-process test dispatcher drives: it runs the real SDK end-to-end without an isolated-sandbox boundary.

ParameterTypeDescription
serverToolkitDefinitionThe compiled server definition.
callToolCallThe normalized tool call.

Promise<ToolCallResult>

The normalized result.