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.
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 |