Skip to main content
Glama

activate_interceptor

Activate HTTP Toolkit interceptors by ID to route traffic through a proxy port for debugging HTTP(S) requests from browsers, devices, or containers.

Instructions

Generic tool to activate any interceptor by ID with custom options. Use the dedicated tools (intercept_chrome, intercept_docker_container, etc.) when possible for better parameter validation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInterceptor ID to activate
proxyPortYesProxy port to route intercepted traffic through
optionsNoInterceptor-specific activation options

Implementation Reference

  • The actual implementation of the `activateInterceptor` method in the `HttpToolkitClient` class, which sends the activation request to the HTTP Toolkit server.
    async activateInterceptor(
      id: string,
      proxyPort: number,
      options?: unknown
    ): Promise<{ result: { success: boolean; metadata?: unknown } }> {
      return this.request(
        'POST',
        `/interceptors/${encodeURIComponent(id)}/activate/${proxyPort}`,
        options || {}
      );
    }

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/fdciabdul/httptoolkit-mcp'

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