Zene Studio
On this page

Command reference

How to discover and call control commands, and the reversibility contract you can rely on.

Applies to 0.3.0-alphaUpdated

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:

  1. It changes between builds. The reference configuration holds 340 commands; the release configuration snapshot holds 332.
  2. Some commands are conditional. The eight wasm.* commands register only where the wasmtime C API is found — and no release job provisions it.
  3. 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:

ClassCountWhat it means for you
true_inverse158Undoable by running the inverse
snapshot32Capture state first, restore later
irreversible13Cannot be undone — confirm with a human first
not_mutating137Read-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 snapshot before a bulk operation you cannot reverse;
  • keep the socket path in a private directory.

For scripting, see Lua API. For agents, see MCP bridge.

Help keep Zene Studio free

Developing Zene Studio costs money.

There is no paid tier and no advertising, so donations are what keep it going. If it is useful to you, please give what you can.