intercept_fresh_terminal
Open a terminal to automatically intercept HTTP(S) traffic from launched processes and Docker containers for debugging purposes.
Instructions
Open a new terminal window where all launched processes and Docker containers will have their HTTP(S) traffic intercepted automatically.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxyPort | Yes | Proxy port to route traffic through |
Implementation Reference
- src/index.ts:164-174 (handler)Registration of the 'intercept_fresh_terminal' tool, which uses 'client.activateInterceptor' to handle the request.
server.registerTool( 'intercept_fresh_terminal', { title: 'Open Intercepted Terminal', description: 'Open a new terminal window where all launched processes and Docker containers will have their HTTP(S) traffic intercepted automatically.', inputSchema: z.object({ proxyPort: z.number().describe('Proxy port to route traffic through'), }), }, async ({ proxyPort }) => jsonResult(await client.activateInterceptor('fresh-terminal', proxyPort)) ); - src/httptoolkit-client.ts:101-110 (handler)The underlying 'activateInterceptor' method in HttpToolkitClient that makes the API call to activate the specified interceptor.
async activateInterceptor( id: string, proxyPort: number, options?: unknown ): Promise<{ result: { success: boolean; metadata?: unknown } }> { return this.request( 'POST', `/interceptors/${encodeURIComponent(id)}/activate/${proxyPort}`, options || {} );