MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / #queueFor

Method #queueFor

src/ToolHandler.ts:462–479  ·  view source on GitHub ↗

* The queue the call runs on. `'none'` tools run outside the runner. * `'page'` tools run on the queue of the page named by `rawArgs.pageId` * when page id routing applies; every other call runs on the context * queue.

(
    context: McpContext,
    rawArgs: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

460 * queue.
461 */
462 #queueFor(
463 context: McpContext,
464 rawArgs: Record<string, unknown>,
465 ): TaskQueue | undefined {
466 const tool = this.#tool;
467 switch (tool.concurrency) {
468 case 'none':
469 return undefined;
470 case 'page': {
471 const pageId = routedPageId(tool, this.#config.resolved, rawArgs);
472 return pageId !== undefined
473 ? context.pageTaskQueue(pageId)
474 : context.taskQueue;
475 }
476 default:
477 return context.taskQueue;
478 }
479 }
480
481 /**
482 * Cancellation stops waiting for a result, but running work keeps its queue

Callers 1

handleMethod · 0.95

Calls 2

routedPageIdFunction · 0.85
pageTaskQueueMethod · 0.80

Tested by

no test coverage detected