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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Interceptor ID to activate | |
| proxyPort | Yes | Proxy port to route intercepted traffic through | |
| options | No | Interceptor-specific activation options |
Implementation Reference
- src/httptoolkit-client.ts:101-111 (handler)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 || {} ); }