interceptor_chrome_close
Close a Chrome instance launched by the proxy-mcp server's interceptor tool to terminate network traffic interception sessions.
Instructions
Close a Chrome instance launched by interceptor_chrome_launch.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Target ID from interceptor_chrome_launch |
Implementation Reference
- src/tools/interceptors.ts:434-447 (handler)The handler for the interceptor_chrome_close tool, which calls devToolsBridge.closeSessionsByTarget and interceptorManager.deactivate.
async ({ target_id }) => { try { await devToolsBridge.closeSessionsByTarget(target_id).catch(() => {}); await interceptorManager.deactivate("chrome", target_id); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Chrome instance ${target_id} closed.` }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] }; } }, - src/tools/interceptors.ts:428-448 (registration)Registration of the interceptor_chrome_close tool using server.tool.
server.tool( "interceptor_chrome_close", "Close a Chrome instance launched by interceptor_chrome_launch.", { target_id: z.string().describe("Target ID from interceptor_chrome_launch"), }, async ({ target_id }) => { try { await devToolsBridge.closeSessionsByTarget(target_id).catch(() => {}); await interceptorManager.deactivate("chrome", target_id); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Chrome instance ${target_id} closed.` }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] }; } }, ); - src/tools/interceptors.ts:431-433 (schema)Schema definition for the input arguments (target_id) of the interceptor_chrome_close tool.
{ target_id: z.string().describe("Target ID from interceptor_chrome_launch"), },