interceptor_docker_detach
Remove proxy configuration from Docker containers and clean up injected files to restore original network settings after traffic interception.
Instructions
Remove proxy configuration from a Docker container and clean up injected files.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Target ID from interceptor_docker_attach |
Implementation Reference
- src/tools/interceptors.ts:747-763 (handler)The tool 'interceptor_docker_detach' is registered and implemented in src/tools/interceptors.ts using server.tool. It calls interceptorManager.deactivate("docker", target_id) to perform the detachment.
server.tool( "interceptor_docker_detach", "Remove proxy configuration from a Docker container and clean up injected files.", { target_id: z.string().describe("Target ID from interceptor_docker_attach"), }, async ({ target_id }) => { try { await interceptorManager.deactivate("docker", target_id); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Docker container ${target_id} detached.` }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] };