OpenDeck
v0.5.0Configure OpenDeck stream controllers (Stream Deck and others) in natural language.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_overview
Start here. Lists devices (grid size, dials, touchpoints, connected), each device's profiles and which is selected, installed plugins, whether OpenDeck is running, and how many changes are staged.
show_profile
Render a profile: a grid sketch plus every occupied slot with its action, title and state. Includes staged (not yet applied) changes, marked with *. Slot labels shown are the ones the editing tools accept.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
profile | Profile id; defaults to the device's selected profile. | |
show_children | boolean | |
show_settings | boolean | Include each key's settings (redacted). |
list_actions
List actions that can be placed on keys or dials: name, plugin, uuid, controllers, states. Includes OpenDeck's Multi Action and Toggle Action, and plugins staged for install.
| Parameter | Type | Description |
|---|---|---|
controller | Keypad for keys, Encoder for dials. | |
plugin | Only this plugin (name or id). | |
query | Filter by text in name/plugin/uuid. |
describe_action
Explain one action's settings before placing it: a curated schema for OpenDeck and Starter Pack actions, otherwise hints read from the plugin's settings page, plus real settings from the user's existing keys (secrets redacted).
| Parameter | Type | Description |
|---|---|---|
action * | string | Action uuid or name, e.g. 'Open URL'. |
get_plugin_settings
Show a plugin's global (plugin-wide) settings with secret values redacted.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin name or folder id. |
read_logs
Tail OpenDeck's log or a plugin's log (tokens redacted). Useful after apply_changes.
| Parameter | Type | Description |
|---|---|---|
grep | Only lines matching this regex. | |
lines | integer | |
plugin | Plugin name/id, or omit for OpenDeck's own log. |
get_app_rules
Show automatic profile switching: which profile each device switches to when an app is focused.
set_key
Place an action on a key or dial, replacing whatever is there. For dials use dial<N> with an action that supports Encoder. For a Multi/Toggle Action, set it here, then add_child. Staged only.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action uuid or name (see list_actions). |
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
image | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
profile | Profile id; defaults to the device's selected profile. | |
settings | The action's settings object (see describe_action). | |
title | Text drawn on the key; \n for a new line. | |
title_style | Title look: show (bool), colour (#RRGGBB), size (int), family (font), style (Regular|Bold|Italic|Bold Italic), alignment (top|middle|bottom), underline (bool), stroke_colour, stroke_size, background_c… |
update_key
Change an existing key without replacing its action: title, title style, image, settings, or which state it shows. Title text, image and settings changes on the profile a connected device is showing apply instantly, with no restart (undo with undo_live). Anything else (title style, current state, another profile, a device with staged changes) is staged for apply_changes; the result says which happened. A live settings change reaches the plugin as if edited in OpenDeck's own panel; if that key's settings panel is open in OpenDeck, reopen it to see the change.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot, or <slot>/child<N> for a child. |
current_state | ||
image | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
mode | string | auto: apply instantly when possible, else stage; live: instantly or fail; staged: always stage. |
profile | Profile id; defaults to the device's selected profile. | |
remove_settings | ||
settings_merge | Merged into the settings (JSON merge patch: null deletes a key). | |
settings_replace | Replaces the settings entirely. | |
state | Which state to restyle (0-based) for multi-state actions; default all. | |
title | ||
title_style | Title look: show (bool), colour (#RRGGBB), size (int), family (font), style (Regular|Bold|Italic|Bold Italic), alignment (top|middle|bottom), underline (bool), stroke_colour, stroke_size, background_c… |
undo_live
Undo the latest instant (live) edits made by update_key, newest first: titles, images and settings go back to what they were. Staged changes and applied plans are undone with discard_changes and restore_backup instead.
| Parameter | Type | Description |
|---|---|---|
count | integer | How many of the latest live edits to undo. |
make_folder
Make a folder: a new profile opened by a key on this one, with a Back key inside. OpenDeck allows one folder level, so it's created as '<this profile's folder>/<name>'. Staged only.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
name * | string | Folder name, also the key's title. |
slot * | string | Empty key that will open the folder. |
back_image | Back key image; default a generated arrow, 'default' for the action's own. | |
back_slot | string | Key in the folder that goes back. |
image | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
profile | Profile id; defaults to the device's selected profile. |
clear_key
Remove the action from a key or dial. Staged only.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
profile | Profile id; defaults to the device's selected profile. |
move_key
Move, swap or copy a key (with its settings, title, image and children), within a profile or to another profile/device. Staged only.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
from_slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
to_slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
mode | string | move (destination must be empty), swap, or copy. |
profile | Profile id; defaults to the device's selected profile. | |
to_device | Destination device (default: same). | |
to_profile | Destination profile (default: same). |
add_child
Add an action inside a Multi Action (runs all children in order) or Toggle Action (cycles through them, one per press). Put the Multi/Toggle Action on the key with set_key first. Staged only.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action uuid or name to add inside it. |
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot holding a Multi/Toggle Action. |
delay_ms | Multi Action only: wait after this child, in ms (default 100). | |
image | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
position | 1-based position; default last. | |
profile | Profile id; defaults to the device's selected profile. | |
settings | ||
title | ||
title_style | Title look: show (bool), colour (#RRGGBB), size (int), family (font), style (Regular|Bold|Italic|Bold Italic), alignment (top|middle|bottom), underline (bool), stroke_colour, stroke_size, background_c… |
remove_child
Remove one action from inside a Multi/Toggle Action. Staged only.
| Parameter | Type | Description |
|---|---|---|
child * | integer | 1-based child number. |
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
profile | Profile id; defaults to the device's selected profile. |
set_multi_delays
Set the pauses between the children of a Multi Action. Staged only.
| Parameter | Type | Description |
|---|---|---|
delays_ms * | array | delays_ms[i] = wait after child i+1, in ms (default 100 each). |
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
slot * | string | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. |
profile | Profile id; defaults to the device's selected profile. |
manage_profile
Create, duplicate, rename or delete a profile, or make one the device's selected profile. Renaming also updates app rules and Switch Profile keys that point at it. Staged only.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
operation * | string | |
profile * | string | The profile to act on (for create/duplicate: the new name). Names may be 'Folder/Name' (one level). |
copy_from | For duplicate: the source (default: the selected profile). | |
new_name | For rename. |
set_app_rule
Switch a device to a profile automatically when an app is focused. Staged only.
| Parameter | Type | Description |
|---|---|---|
app * | string | 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 * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
profile * | Profile to switch to; null removes the rule. |
set_plugin_settings
Change a plugin's global (plugin-wide) settings, e.g. a server URL. Staged only.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin name or folder id. |
values * | object | Merged into the plugin's global settings. «redacted» keeps a secret. |
remove_keys |
set_device_layout
Tell opendeck-mcp a device's key grid size when it can't detect it (stored locally; doesn't touch OpenDeck). Usually unnecessary: the bridge plugin records it automatically.
| Parameter | Type | Description |
|---|---|---|
columns * | integer | |
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
rows * | integer |
preview_changes
Show everything staged: per device/profile/slot changes, warnings (commands that will run, plugins that will be installed), and conflicts with edits made in OpenDeck since staging.
| Parameter | Type | Description |
|---|---|---|
detail | string | summary: per-key changes and warnings; files: JSON diffs. |
discard_changes
Drop staged changes without applying them.
| Parameter | Type | Description |
|---|---|---|
which | 'all', 'last', or staged op ids like ['op3', 'op5'] (see preview_changes). |
render_profile
A picture of the deck as OpenDeck draws it: icons, titles, colours, dials, with staged changes outlined. Use it to check a layout before applying, or to show the user.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). |
compare | boolean | Now and after-apply side by side. |
profile | Profile id; defaults to the device's selected profile. | |
staged | boolean | Include staged changes (outlined). |
make_icon
Make a key image: text, an emoji, a brand logo or a generic symbol on a coloured square. Returns a preview and a file path to pass as `image` to set_key / update_key / add_child.
| Parameter | Type | Description |
|---|---|---|
icon * | string | text:Hi (use for a second line), emoji:🔥, brand:github (Simple Icons slug) or mdi:lightbulb-on (Material Design Icons name). Names: find_icons. |
background | #RRGGBB; default dark grey, or the brand colour for brand: icons. | |
colour | #RRGGBB for text/symbol; default black or white, whichever reads better. | |
font | Font for text: icons (OpenDeck's title fonts). | |
scale | Size of the art, 0.2-1.0. | |
style | Regular, Bold, Italic or Bold Italic. |
find_icons
Find icon names for make_icon.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words, e.g. 'microphone off' or 'spotify'. |
icon_set | string | mdi: ~7,400 generic symbols; brand: ~3,400 logos (Simple Icons). |
limit | integer |
ha_search
Find Home Assistant entities (id, name, state, area) to put on keys, using the Home Assistant plugin's saved login. With no filters, lists the areas and domains.
| Parameter | Type | Description |
|---|---|---|
area | Area name, exactly as Home Assistant shows it. | |
domain | e.g. light, switch, scene, script. | |
limit | integer | |
query | Words to match in id, name or area. |
ha_describe_entity
One Home Assistant entity: state, attributes, area, the services its domain offers, and ready-made settings for a Home Assistant key that controls it.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string |
ha_call_service
Call a Home Assistant service right now, e.g. to test what a key will do. Acts on the real home: call with confirm=false first and get the user's OK.
| Parameter | Type | Description |
|---|---|---|
service * | string | domain.service, e.g. light.toggle. |
confirm | boolean | false: describe only; true: call it. |
data | Extra service data. | |
entity_id |
find_plugins
Search for plugins to install, with author, repository and installed/available versions.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query | Search text. | |
source | string | catalogue: open-source OpenAction plugins (same list as OpenDeck's Plugin Manager); archive: rehosted Elgato Stream Deck plugins; installed: what's installed. |
stage_plugin
Install, update or remove a plugin. Installing runs third-party code on the user's computer: call first with confirm=false, show the user what was found (author, version, checksum, AI-assisted flag), and only stage it with confirm=true after they agree. Removal clears the plugin's keys everywhere.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
plugin_id * | string | Catalogue id (see find_plugins) or installed id. |
confirm | boolean | false: download and inspect only. true: stage it (after the user agreed). |
source | string | |
url | Direct .streamDeckPlugin/.zip URL for source=url. |
apply_changes
The only tool that changes OpenDeck. Stops OpenDeck, backs up, writes all staged changes, verifies them and restarts OpenDeck. Call with confirm=false first and show the user the result.
| Parameter | Type | Description |
|---|---|---|
allow_untested_version | boolean | |
confirm | boolean | false: show what would happen. true: apply (only after the user agreed). |
on_conflict | string | |
show_window | boolean | Open OpenDeck's window after restarting. |
list_backups
Backups taken by apply_changes and restore_backup, newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
restore_backup
Undo an apply: put the files it changed back as they were (restarts OpenDeck). Call with confirm=false first to see what would be restored.
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | |
confirm | boolean | |
show_window | boolean |