proxy_disable_rule
Disable an interception rule to temporarily stop it from affecting network traffic without deleting the rule configuration.
Instructions
Disable an interception rule without removing it.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | Rule ID to disable |
Implementation Reference
- src/tools/rules.ts:237-256 (handler)The handler for the proxy_disable_rule tool, which calls proxyManager.disableRule.
server.tool( "proxy_disable_rule", "Disable an interception rule without removing it.", { rule_id: z.string().describe("Rule ID to disable"), }, async ({ rule_id }) => { try { await proxyManager.disableRule(rule_id); return { content: [{ type: "text", text: JSON.stringify({ status: "success", message: `Rule '${rule_id}' disabled.` }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] }; } }, );