Chrome DevTools for coding agents
feat: run page-scoped tools on different pages in parallel (#3252)
Alex Rudenkof8f18ac25350
diff --git a/src/tools/ToolDefinition.ts b/src/tools/ToolDefinition.tsindex 5cc88ea1..b2abf013 100644--- a/src/tools/ToolDefinition.ts+++ b/src/tools/ToolDefinition.ts@@ -83,7 +83,8 @@ type AllKeys<T> = T extends unknown ? keyof T : never;* waits for tasks on the same queue, on its parent, and on its children.** - `'exclusive'`: the context queue, for the whole call. No other browser- * tool runs at the same time. This is the default.+ * tool runs at the same time. For every tool that touches browser-global+ * state or that is not reviewed for page-only access.* - `'page'`: the queue of the page named by `pageId`, a child of the* context queue. Tools on different pages run at the same time; tools on* one page and `'exclusive'` tools wait. Without page id routing the call@@ -137,10 +138,10 @@ export interface BaseToolDefinition<schema: Schema;blockedByDialog: boolean;/**- * Which queues the server holds while the tool runs. Defaults to- * `'exclusive'`. See {@link ToolConcurrency}.+ * Which task queue the server holds while the tool runs. See+ * {@link ToolConcurrency}.*/- concurrency?: ToolConcurrency;+ concurrency: ToolConcurrency;verifyFilesSchema: Partial<Record<keyof MergeSchema<Schema>, FileVerificationOption>>;@@ -159,7 +160,7 @@ export interface ToolDefinition<* A non-page tool has no target page, so it cannot take the page queue. It* touches browser state, so it always runs in a queue.*/- concurrency?: Exclude<ToolConcurrency, 'page' | 'none'>;+ concurrency: Exclude<ToolConcurrency, 'page' | 'none'>;handler(request: Request<Schema>,response: Response,@@ -550,7 +551,7 @@ interface PageToolDefinition<* A page tool with `'none'` must only read page state. Its page lookup and* response formatting run at the same time as other tools on the page.*/- concurrency?: ToolConcurrency;+ concurrency: ToolConcurrency;handler(request: Request<Schema> & {page: ContextPage},response: Response,@@ -590,9 +591,9 @@ export interface BrowserlessToolDefinition<*/blockedByDialog: false;/**- * A browserless tool has no page.+ * A browserless tool has no page. `defineBrowserlessTool` sets `'none'`.*/- concurrency?: Exclude<ToolConcurrency, 'page'>;+ concurrency: Exclude<ToolConcurrency, 'page'>;handler(request: Request<Schema>,response: Response,@@ -609,7 +610,8 @@ export interface BrowserlessToolDefinition<export function defineBrowserlessTool<Schema extends zod.ZodRawShape>(definition: (args: ParsedArguments,- ) => Omit<BrowserlessToolDefinition<Schema>, 'browserless'>,+ ) => Omit<BrowserlessToolDefinition<Schema>, 'browserless' | 'concurrency'> &+ Partial<Pick<BrowserlessToolDefinition<Schema>, 'concurrency'>>,): (args: ParsedArguments) => BrowserlessToolDefinition<Schema> {return (args: ParsedArguments): BrowserlessToolDefinition<Schema> => {return {diff --git a/src/tools/comments.ts b/src/tools/comments.tsindex d324b704..88f529f2 100644--- a/src/tools/comments.ts+++ b/src/tools/comments.ts@@ -27,6 +27,7 @@ export const openDevtools = definePageTool(() => ({},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: [],handler: async (request, response) => {const page = request.page;@@ -139,6 +140,7 @@ export const resolveDevtoolsComment = definePageTool(() => ({),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -209,6 +211,7 @@ export const revealInDevtools = definePageTool(() => ({.describe('Optional network request ID to reveal in the Network panel.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/console.ts b/src/tools/console.tsindex f1b35db9..d6ced3f9 100644--- a/src/tools/console.ts+++ b/src/tools/console.ts@@ -94,6 +94,7 @@ export const listConsoleMessages = definePageTool(),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {response.setIncludeConsoleData(true, {@@ -124,6 +125,7 @@ export const getConsoleMessage = definePageTool(() => ({),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {response.attachConsoleMessage(request.params.msgid);diff --git a/src/tools/css.ts b/src/tools/css.tsindex 564740b1..a6b82403 100644--- a/src/tools/css.ts+++ b/src/tools/css.ts@@ -43,6 +43,7 @@ Results are paginated (10 rules per page by default); use pageIdx to page throug),},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const matchedStyles = await request.page.getMatchedStylesForUid(diff --git a/src/tools/emulation.ts b/src/tools/emulation.tsindex 9a54a058..17ce7e72 100644--- a/src/tools/emulation.ts+++ b/src/tools/emulation.ts@@ -124,6 +124,7 @@ export const emulate = definePageTool(() => ({),},blockedByDialog: true,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/extensions.ts b/src/tools/extensions.tsindex 1c291919..21e2f639 100644--- a/src/tools/extensions.ts+++ b/src/tools/extensions.ts@@ -22,6 +22,7 @@ export const installExtension = defineTool(() => ({.describe('Absolute path to the unpacked extension folder.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {path: {local: true},},@@ -43,6 +44,7 @@ export const uninstallExtension = defineTool(() => ({id: zod.string().describe('ID of the extension to uninstall.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {id} = request.params;@@ -61,6 +63,7 @@ export const listExtensions = defineTool(() => ({},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (_request, response) => {response.setListExtensions();@@ -78,6 +81,7 @@ export const reloadExtension = defineTool(() => ({id: zod.string().describe('ID of the extension to reload.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {id} = request.params;@@ -101,6 +105,7 @@ export const triggerExtensionAction = defineTool(() => ({id: zod.string().describe('ID of the extension to trigger the action for.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {id} = request.params;diff --git a/src/tools/input.ts b/src/tools/input.tsindex cfea3d43..5d5583d8 100644--- a/src/tools/input.ts+++ b/src/tools/input.ts@@ -125,6 +125,7 @@ export const click = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const uid = request.params.uid;@@ -183,6 +184,7 @@ export const clickAt = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -219,6 +221,7 @@ export const hover = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const uid = request.params.uid;@@ -411,6 +414,7 @@ export const fill = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const {result} = await fillFormElements(@@ -443,6 +447,7 @@ export const typeText = definePageTool(() => ({submitKey: submitKeySchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -474,6 +479,7 @@ export const drag = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {using fromHandle = await request.page.getElementByUid(@@ -521,6 +527,7 @@ export const fillForm = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const {result, interruptedUid} = await fillFormElements(@@ -571,6 +578,7 @@ export const uploadFile = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',// We do not validate file paths for remote browser instances// because they are on the remote host and not accessed by the MCP server.verifyFilesSchema: {@@ -633,6 +641,7 @@ export const pressKey = definePageTool(() => ({includeSnapshot: includeSnapshotSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/lighthouse.ts b/src/tools/lighthouse.tsindex ffd3870a..a8507c6b 100644--- a/src/tools/lighthouse.ts+++ b/src/tools/lighthouse.ts@@ -190,6 +190,7 @@ export const lighthouseAudit = definePageTool((args: ParsedArguments) => ({.describe('Directory for reports. If omitted, uses temporary files.'),},blockedByDialog: true,+ concurrency: 'exclusive',verifyFilesSchema: {outputDirPath: true,},diff --git a/src/tools/memory.ts b/src/tools/memory.tsindex 9f34dcd6..01a19bc9 100644--- a/src/tools/memory.ts+++ b/src/tools/memory.ts@@ -61,6 +61,7 @@ export const takeHeapSnapshot = definePageTool(() => ({.describe('A path to a .heapsnapshot file to save the heapsnapshot to.'),},blockedByDialog: true,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},diff --git a/src/tools/network.ts b/src/tools/network.tsindex c8968932..9c8c4767 100644--- a/src/tools/network.ts+++ b/src/tools/network.ts@@ -71,6 +71,7 @@ export const listNetworkRequests = definePageTool(() => ({),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const data = await request.page.getDevToolsData();@@ -116,6 +117,7 @@ export const getNetworkRequest = definePageTool(() => ({),},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {requestFilePath: true,responseFilePath: true,diff --git a/src/tools/pages.ts b/src/tools/pages.tsindex afa50466..e6ab93f8 100644--- a/src/tools/pages.ts+++ b/src/tools/pages.ts@@ -28,6 +28,7 @@ export const listPages = defineTool((args: ParsedArguments) => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (_request, response) => {response.setIncludePages(true);@@ -56,6 +57,7 @@ export const selectPage = defineTool((args: ParsedArguments) => ({.describe('Whether to focus the page and bring it to the top.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const page = context.getPageById(request.params.pageId);@@ -83,6 +85,7 @@ export const closePage = defineTool(() => ({.describe('The ID of the page to close. Call list_pages to list pages.'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {try {@@ -126,6 +129,7 @@ export const newPage = defineTool((args: ParsedArguments) => {...timeoutSchema,},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {validateUrl(request.params.url, {@@ -193,6 +197,7 @@ export const navigatePage = definePageTool((args: ParsedArguments) => {...timeoutSchema,},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -327,6 +332,7 @@ export const resizePage = definePageTool(() => ({height: zod.number().int().positive().describe('Page height'),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -373,6 +379,7 @@ export const handleDialog = definePageTool(() => ({.describe('Optional prompt text to enter into the dialog.'),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;@@ -419,6 +426,7 @@ export const getTabId = definePageTool(() => ({},schema: {},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/performance.ts b/src/tools/performance.tsindex 9c2a7e00..d6003919 100644--- a/src/tools/performance.ts+++ b/src/tools/performance.ts@@ -54,6 +54,7 @@ export const startTrace = definePageTool(() => ({filePath: filePathSchema,},blockedByDialog: true,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},@@ -153,6 +154,7 @@ export const stopTrace = definePageTool(() => ({filePath: filePathSchema,},blockedByDialog: true,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},@@ -194,6 +196,7 @@ export const analyzeInsight = definePageTool(() => ({),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const lastRecording = context.recordedTraces().at(-1);diff --git a/src/tools/pwa.ts b/src/tools/pwa.tsindex 69e3d0dd..eb98e2b9 100644--- a/src/tools/pwa.ts+++ b/src/tools/pwa.ts@@ -50,6 +50,7 @@ export const installPwa = defineTool(() => ({displayMode: displayModeSchema,},blockedByDialog: false,+ concurrency: 'exclusive',// We do not validate file paths for remote browser instances// because they are on the remote host and not accessed by the MCP server.verifyFilesSchema: {@@ -90,6 +91,7 @@ export const uninstallPwa = defineTool(() => ({manifestId: manifestIdSchema,},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {manifestId} = request.params;@@ -121,6 +123,7 @@ export const launchPwa = defineTool(() => ({),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {manifestId, url} = request.params;@@ -145,6 +148,7 @@ export const getOsAppState = defineTool(() => ({manifestId: manifestIdSchema,},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response, context) => {const {manifestId} = request.params;diff --git a/src/tools/screencast.ts b/src/tools/screencast.tsindex 3703c722..43e78956 100644--- a/src/tools/screencast.ts+++ b/src/tools/screencast.ts@@ -88,6 +88,7 @@ export const startScreencast = definePageTool((args: ParsedArguments) => ({),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},@@ -175,6 +176,7 @@ export const stopScreencast = definePageTool(() => ({},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.tsindex a0a9fcbb..4a625eca 100644--- a/src/tools/screenshot.ts+++ b/src/tools/screenshot.ts@@ -191,6 +191,7 @@ export const screenshot = definePageTool((args: ParsedArguments) => {),},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {filePath: true,},diff --git a/src/tools/script.ts b/src/tools/script.tsindex 18d5c9b9..6776813f 100644--- a/src/tools/script.ts+++ b/src/tools/script.ts@@ -101,6 +101,7 @@ Example with arguments: \`(el) => el.innerText\`: {}),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,// sourcePath may be an http(s): URL the server fetches, so allow URLsdiff --git a/src/tools/slim/tools.ts b/src/tools/slim/tools.tsindex 4ddd84c2..ba1059a1 100644--- a/src/tools/slim/tools.ts+++ b/src/tools/slim/tools.ts@@ -22,6 +22,7 @@ export const screenshot = definePageTool(() => ({},schema: {},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response, context) => {const page = request.page;@@ -50,6 +51,7 @@ export const navigate = definePageTool((args: ParsedArguments) => {url: zod.string().describe('URL to navigate to'),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {validateUrl(request.params.url, {@@ -97,6 +99,7 @@ export const evaluate = definePageTool(() => ({script: zod.string().describe(`JS script to run on the page`),},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/snapshot.ts b/src/tools/snapshot.tsindex 94c6276d..25855d96 100644--- a/src/tools/snapshot.ts+++ b/src/tools/snapshot.ts@@ -34,6 +34,7 @@ in the DevTools Elements panel (if any).`,),},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {filePath: true,},@@ -62,6 +63,7 @@ export const waitFor = definePageTool(() => ({...timeoutSchema,},blockedByDialog: true,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const page = request.page;diff --git a/src/tools/thirdPartyDeveloper.ts b/src/tools/thirdPartyDeveloper.tsindex 0e385472..9f6093d0 100644--- a/src/tools/thirdPartyDeveloper.ts+++ b/src/tools/thirdPartyDeveloper.ts@@ -58,6 +58,7 @@ third-party developer tools with additional functionality.`,},schema: {},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (_request, response) => {response.setListThirdPartyDeveloperTools();@@ -79,6 +80,7 @@ export const executeThirdPartyDeveloperTool = definePageTool(() => ({.describe('The JSON-stringified parameters to pass to the tool'),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const toolName = request.params.toolName;diff --git a/src/tools/webmcp.ts b/src/tools/webmcp.tsindex 2adf85a9..80daded1 100644--- a/src/tools/webmcp.ts+++ b/src/tools/webmcp.ts@@ -18,6 +18,7 @@ export const listWebMcpTools = definePageTool(() => ({},schema: {},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (_request, response) => {response.setListWebMcpTools();@@ -39,6 +40,7 @@ export const executeWebMcpTool = definePageTool(() => ({.describe('The JSON-stringified parameters to pass to the WebMCP tool'),},blockedByDialog: false,+ concurrency: 'page',verifyFilesSchema: {},handler: async (request, response) => {const toolName = request.params.toolName;diff --git a/tests/ToolHandler.test.ts b/tests/ToolHandler.test.tsindex 978bba46..72598423 100644--- a/tests/ToolHandler.test.ts+++ b/tests/ToolHandler.test.ts@@ -76,6 +76,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {handlerCalled = true;@@ -115,6 +116,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {handlerCalled = true;@@ -153,6 +155,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {handlerCalled = true;@@ -199,7 +202,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,- concurrency: options.concurrency,+ concurrency: options.concurrency ?? 'exclusive',verifyFilesSchema: {},handler,};@@ -351,6 +354,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler,};@@ -690,6 +694,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => undefined,};@@ -725,6 +730,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {return;@@ -811,6 +817,7 @@ describe('ToolHandler', () => {url: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {return;@@ -861,6 +868,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {handlerCalled = true;@@ -1056,6 +1064,7 @@ describe('ToolHandler', () => {fileList: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,// allowUrl lets a remote URL pass through unchanged (file/plain paths@@ -1139,6 +1148,7 @@ describe('ToolHandler', () => {filePath: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},@@ -1218,6 +1228,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePaths: {local: true,@@ -1272,6 +1283,7 @@ describe('ToolHandler', () => {installUrlOrBundleUrl: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {installUrlOrBundleUrl: {local: true,@@ -1332,6 +1344,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePaths: {local: true,@@ -1385,6 +1398,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePaths: {local: true,@@ -1429,6 +1443,7 @@ describe('ToolHandler', () => {installUrlOrBundleUrl: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {installUrlOrBundleUrl: {local: true,@@ -1476,6 +1491,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePaths: {local: true,@@ -1527,6 +1543,7 @@ describe('ToolHandler', () => {inputFile: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {outputFile: true,inputFile: {@@ -1589,6 +1606,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePaths: {local: true,@@ -1640,6 +1658,7 @@ describe('ToolHandler', () => {remoteFile: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {remoteFile: {local: false,@@ -1708,6 +1727,7 @@ describe('ToolHandler', () => {filePath: zod.string(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,},@@ -1771,6 +1791,7 @@ describe('ToolHandler', () => {filePaths: zod.array(zod.string()).optional(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {filePath: true,filePaths: true,@@ -1814,6 +1835,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async (_request, response) => {// Simulates valid slow work, e.g. wait_for with a long timeout or@@ -1865,6 +1887,7 @@ describe('ToolHandler', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {// Never reached: the timeout fires while still awaiting ensureBrowser().@@ -1921,6 +1944,7 @@ describe('ToolHandler', () => {annotations: {category: ToolCategory.INPUT, readOnlyHint: true},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async ({page}) => {focusStates.push(@@ -2062,6 +2086,7 @@ describe('ToolHandler', () => {},schema,blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler,};diff --git a/tests/telemetry/metricsRegistry.test.ts b/tests/telemetry/metricsRegistry.test.tsindex b739b48c..00689fec 100644--- a/tests/telemetry/metricsRegistry.test.ts+++ b/tests/telemetry/metricsRegistry.test.ts@@ -47,6 +47,7 @@ describe('metricsRegistry', () => {uid: zod.string(), // Should be blocked},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {// no-op@@ -73,6 +74,7 @@ describe('metricsRegistry', () => {argEnum: zod.enum(['foo', 'bar']),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {// no-op@@ -97,6 +99,7 @@ describe('metricsRegistry', () => {argEnum: zod.enum(['foo', 'bar']).default('foo').optional(),},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {// no-op@@ -119,6 +122,7 @@ describe('metricsRegistry', () => {},schema: {},blockedByDialog: false,+ concurrency: 'exclusive',verifyFilesSchema: {},handler: async () => {// no-op