Function: useExposedTools()
useExposedTools(
tools):void
Defined in: react/src/webmcp.ts:8
Offer page tools to the browser's agents (WebMCP) while the component is mounted. Pass a stable array (defined outside render, or memoized).
Parametersโ
toolsโ
ToolDefinition<Record<string, unknown>, unknown>[]
Returnsโ
void