( debuggerApi: ChromeDebuggerApi )
| 245 | |
| 246 | export interface ViewportScreenshot { |
| 247 | readonly dataUrl: string; |
| 248 | readonly devicePixelRatio: number; |
| 249 | readonly height: number; |
| 250 | readonly mediaType: 'image/png'; |
| 251 | readonly width: number; |
| 252 | } |
| 253 | |
| 254 | export interface WebMcpToolDescriptor { |
| 255 | readonly name: string; |
| 256 | readonly title: string; |
| 257 | readonly description: string; |
| 258 | readonly origin: string; |
| 259 | readonly inputSchema: unknown; |
| 260 | } |
| 261 | |
| 262 | export interface WebMcpDiscoveryResult { |
| 263 | readonly documentId: string; |
| 264 | readonly tools: WebMcpToolDescriptor[]; |
| 265 | } |
| 266 | |
| 267 | /* |
| 268 | * Injected page code cannot report a rejection: Chrome turns a throw inside |
| 269 | * `executeScript` into a null result with no error, which would read as a |
| 270 | * successful tool call. The injected executor therefore reports through this |
| 271 | * envelope, and a missing envelope is treated as a failure. |
no test coverage detected