Skip to content

chromeBuiltinAISampling

chromeBuiltinAISampling(opts?): (req) => Promise<unknown>

Defined in: packages/mcp-query/src/handlers/chromeAI.ts:76

Build a HostHandlers["sampling"] that fulfills sampling/createMessage via Chrome’s built-in AI. Maps the MCP message history onto a Prompt API session and shapes the reply back into a CreateMessageResult.

ChromeSamplingOptions = {}

(req) => Promise<unknown>