Instance
Defined in: index.ts:25
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
ready |
Promise<Registration> |
Resolves when registration settles; says which API was used. | index.ts:33 |
source |
ContentAdapter |
The content source in use. | index.ts:31 |
tools |
ToolDefinition[] |
The tool definitions (instrumented). Usable without WebMCP: await instance.call('search_posts', {query}). |
index.ts:27 |
Methods
Section titled “Methods”call()
Section titled “call()”call(name, input?): Promise<unknown>;Defined in: index.ts:29
Calls a tool by (prefixed) name, exactly as an agent would.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
input? |
Record<string, unknown> |
Returns
Section titled “Returns”Promise<unknown>
destroy()
Section titled “destroy()”destroy(): void;Defined in: index.ts:35
Unregisters every tool.
Returns
Section titled “Returns”void