proxy_remove_target
Remove a specified domain from automated proxy monitoring to stop tracking and analyzing its HTTP/HTTPS traffic, ensuring targeted control over monitored data.
Instructions
Remove a target domain from proxy monitoring
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to remove from monitoring |
Implementation Reference
- src/tools/tool-handlers.js:175-182 (handler)The handler case for 'proxy_remove_target' in _handleTargetTool method. Calls targetManager.removeTarget(args.domain) and returns a formatted success/error message with stats.case 'proxy_remove_target': const removed = this.targetManager.removeTarget(args.domain); return { content: [{ type: "text", text: `Target removed: ${args.domain}\nStatus: ${removed ? 'success' : 'not found'}\nRemaining domains: ${this.targetManager.getStats().enabled}` }] };
- src/tools/tool-definitions.js:42-55 (schema)Input schema definition for the proxy_remove_target tool, requiring a 'domain' string parameter.proxy_remove_target: { name: "proxy_remove_target", description: "Remove a target domain from proxy monitoring", inputSchema: { type: "object", properties: { domain: { type: "string", description: "Domain to remove from monitoring" } }, required: ["domain"] } },
- src/proxy/target-manager.js:54-65 (helper)Core implementation of target removal in TargetManager class: deletes the domain from the internal Map and updates the PAC file if successful.removeTarget(domain) { if (!domain) { throw new Error('Domain is required'); } const removed = this.targets.delete(domain.toLowerCase()); if (removed) { this._updatePacFile(); } return removed; }