On this page
Command reference
How to discover and call control commands, and the reversibility contract you can rely on.
The command set is large (340 commands in 53 groups), versioned, and deliberately not frozen into this documentation. The authoritative list is whatever the running binary reports.
Discovering commands
Always start by asking, never by guessing:
zene --control-socket /tmp/zene.sock &
# Every command id, grouped
echo '{"command":"control.commands_list"}' | nc -U /tmp/zene.sock
The reply includes each command’s schema and reversibility class, so one call tells you both what exists and what it will cost you to call it.
Why not publish a fixed list
Three reasons:
- It changes between builds. The reference configuration holds 340 commands; the release configuration snapshot holds 332.
- Some commands are conditional. The eight
wasm.*commands register only where the wasmtime C API is found — and no release job provisions it. - A stale list is worse than none. A script that calls a command which no longer exists fails at the worst moment. A script that discovers first does not.
Command groups
Commands are namespaced by group. The shape is <group>.<verb>, for example control.*,
mixer.*, track.*, warp.*, rack.*, vca.*, automation.*, note.*, meter.*.
Discover the group list from control.commands_list. This page can fall behind it.
Reversibility, before you call
Every command declares one of four classes. Read them before calling anything destructive:
| Class | Count | What it means for you |
|---|---|---|
true_inverse | 158 | Undoable by running the inverse |
snapshot | 32 | Capture state first, restore later |
irreversible | 13 | Cannot be undone — confirm with a human first |
not_mutating | 137 | Read-only, safe to poll |
control.undo reaches the same undo history as the GUI’s Ctrl+Z, so a scripted edit is undoable in
the interface too, and vice versa.
Honest refusals
Not every registered command does the thing its name suggests. mixer.set_pan has a full schema and
refuses every call, because a mixer channel in this tree carries no pan property.
Treat a refusal as a valid response, not an error. Log it, branch on it, and do not retry it in a loop.
Rate and safety
The socket is local and unauthenticated. Nothing rate-limits a misbehaving client, so:
- poll read-only (
not_mutating) commands instead of re-issuing writes; - take a
snapshotbefore a bulk operation you cannot reverse; - keep the socket path in a private directory.
For scripting, see Lua API. For agents, see MCP bridge.
Spotted something wrong? Open an issue