Skip to content

ToolkitDefinition

The compiled server, produced by defineToolkit. It carries the tools/list descriptors and a normalized request handler the runtime entry wires to the hosted runtime’s fetch.

PropertyModifierTypeDescription
toolsreadonlyreadonly ToolListEntry[]The tools/list descriptors (names un-namespaced, schemas compiled).
handle(call: ToolCall): Promise<ToolCallResult>;

Handle one normalized tool call: validate args, build ctx, run the handler inside a try/catch, and normalize the outcome.

ParameterType
callToolCall

Promise<ToolCallResult>