toggle_rule
Toggle a Karabiner rule on or off using its exact description. Enabling removes the disabled flag; disabling adds it, preserving the rule in karabiner.json.
Instructions
Enable or disable an installed rule.
The rule stays in karabiner.json either way — disabling adds 'enabled: false', enabling removes that flag.
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": {
"description": "<description>",
"enabled": "<enabled>"
},
"name": "toggle_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | True to enable, False to disable. | |
| description | Yes | Exact description of the rule to toggle. | |
| profile_index | No | Profile index. Omit for the selected profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |