MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / listInspectableTabs

Function listInspectableTabs

apps/extension/src/shared/tab-debugger.ts:247–268  ·  view source on GitHub ↗
(
  debuggerApi: ChromeDebuggerApi
)

Source from the content-addressed store, hash-verified

245
246export 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
254export interface WebMcpToolDescriptor {
255 readonly name: string;
256 readonly title: string;
257 readonly description: string;
258 readonly origin: string;
259 readonly inputSchema: unknown;
260}
261
262export 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.

Callers 2

handleTabDebuggerRequestFunction · 0.90

Calls 1

isNormalPageUrlFunction · 0.85

Tested by

no test coverage detected