sockdock_set_rule_enabled
Turn a SockDock rule on or off to pause it without losing its settings. A disabled rule is skipped so the next matching rule in the channel runs instead.
Instructions
Turns a rule on or off. A rule that is off is skipped, so the next matching rule in the channel runs instead; replies in its existing threads get an "off" message. Use it to pause a rule without losing its settings. The user gets a notification on their Mac.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"enabled": "<enabled>"
},
"name": "sockdock_set_rule_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the rule's name (from sockdock_list_rules) | |
| enabled | Yes | true to turn the rule on, false to turn it off |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |