Skip to main content
Glama

interceptor_chrome_devtools_detach

Close a Chrome DevTools debugging session by specifying its session ID to end network traffic interception and monitoring.

Instructions

Close a chrome-devtools-mcp sidecar session by session ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
devtools_session_idYesSession ID from interceptor_chrome_devtools_attach

Implementation Reference

  • The handler for interceptor_chrome_devtools_detach tool, which uses devToolsBridge.closeSession to detach from a Chrome session.
    server.tool(
      "interceptor_chrome_devtools_detach",
      "Close a chrome-devtools-mcp sidecar session by session ID.",
      {
        devtools_session_id: z.string().describe("Session ID from interceptor_chrome_devtools_attach"),
      },
      async ({ devtools_session_id }) => {
        try {
          const closed = await devToolsBridge.closeSession(devtools_session_id);
          if (!closed) {
            return {
              content: [{
                type: "text",
                text: JSON.stringify({ status: "error", error: `DevTools session '${devtools_session_id}' not found.` }),
              }],
            };
          }
          return {
            content: [{
              type: "text",
              text: JSON.stringify({ status: "success", message: `DevTools session ${devtools_session_id} closed.` }),
            }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] };
        }
      },
    );
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