/** * Minimal `document.modelContext` typing for the page-side code in these tests. * * Not a spec transcription: only what the fixture and specs actually touch, * shaped the way Chrome 152 behaves — note `inputSchema` is a JSON *string*, * and `executeTool` takes one too. */ interface WebMcpToolDescriptor { name: string; description: string; inputSchema: string; title?: string; annotations?: Record; } interface WebMcpModelContext { getTools(): Promise; executeTool(tool: { name: string }, inputArguments: string): Promise; } interface Document { modelContext?: WebMcpModelContext; }