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.
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": {
"app": "<app>",
"device": "<device>",
"profile": "<profile>"
},
"name": "set_app_rule"
}
}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 |