Skip to main content
Glama

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
NameRequiredDescriptionDefault
target_idYesTarget ID from interceptor_chrome_launch

Implementation Reference

  • 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) }) }] };
      }
    },
  • 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) }) }] };
        }
      },
    );
  • 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"),
    },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yfe404/proxy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server