UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

22 lines • 1.13 kB
import type { Tool } from "assistant-stream"; /** @deprecated Experimental since 2026-08-29. Not scheduled for removal; the API may change in any release. */ export type Unstable_WebMcpProviderOptions = { filter?: (name: string, tool: Tool<any, any>) => boolean; }; /** @deprecated Experimental since 2026-08-29. Not scheduled for removal; the API may change in any release. */ export type Unstable_WebMcpProviderResult = { status: "unsupported" | "active"; registeredToolNames: readonly string[]; }; /** * Publishes the frontend tools in the model context to a WebMCP-capable * browser, so the user's own browser agent can call them. * * Returns `status: "unsupported"` when the page exposes no * `document.modelContext` (or `navigator.modelContext`), and the sorted names * of the tools currently registered with the host. * * @deprecated Experimental since 2026-08-29. Not scheduled for removal; the API may change in any release. */ export declare const unstable_useWebMcpProvider: (options?: Unstable_WebMcpProviderOptions) => Unstable_WebMcpProviderResult; //# sourceMappingURL=useWebMcpProvider.d.ts.map