set_app_rule
Create or remove a rule that switches a chosen device to a profile automatically when an app is focused; changes are staged for confirmation.
Instructions
Switch a device to a profile automatically when an app is focused. Staged only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app's display name as OpenDeck sees it (e.g. 'Visual Studio Code', 'Chatterino'), or 'opendeck_default' for the fallback when no rule matches. | |
| device | Yes | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). | |
| profile | Yes | Profile to switch to; null removes the rule. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |