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.
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
tools | readonly | readonly ToolListEntry[] | The tools/list descriptors (names un-namespaced, schemas compiled). |
Methods
Section titled “Methods”handle()
Section titled “handle()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
call | ToolCall |
Returns
Section titled “Returns”Promise<ToolCallResult>