Function: exposeTools()
exposeTools(
tools,options?): () =>void
Defined in: packages/client/src/webmcp.ts:39
Offer page tools to the browser's agents. Tools without execute (the
visitor answers them in the page's UI) are left out. Returns a function
that takes the tools back.
Parameters
tools
ToolDefinition<Record<string, unknown>, unknown>[]
options?
signal?
AbortSignal
Returns
() => void