Context-Menu Scopes in Ableton Live Extensions: Where Tools Appear
Published Nov 4, 2026 · guide
How Ableton Live Extensions attach to MidiClip, ClipSlot, track, scene and device context menus, which scope to pick, and what to verify in the SDK docs.
An Ableton Live Extension has no toolbar button, no floating window and no background process. Users reach it by right-clicking something in their Set, such as a MIDI clip, an audio clip, a clip slot, a track, a scene or a device. Compatible extensions appear in that menu, and clicking the name runs the tool. The context-menu scope you attach your command to is therefore the only front door your extension has. Choose it badly and users won't find the tool, or they'll find it in places where it can't do anything useful.
What a scope decides
In the SDK, the wiring has two steps. Inside your entry file's activate() function you call initialize(), register a command with commands.registerCommand, then attach it to a menu with ui.registerContextMenuAction(scope, title, commandId). The scope is a string naming the kind of item. The title is the text users see when they right-click.
The scope settles three things:
- Where the action shows up. A
"MidiClip"action appears when someone right-clicks a MIDI clip and nowhere else. - What your command receives. The command is passed a handle to the item that was clicked, which you resolve into an object, for example
context.getObjectFromHandle(handle, MidiClip). - The user's mental model. Right-clicking a clip suggests "do something to this clip". Right-clicking a track suggests "do something across this track". Your tool should match what the click implies.
Each invocation also runs once and stops. Nothing persists between clicks except what you write to the per-extension storage directory, so the clicked item is your entire starting context every time.
The scope strings the SDK confirms
Ableton's materials name three scope strings explicitly. They are a good starting set:
| Scope string | User right-clicks | Good fit for |
|---|---|---|
"MidiClip" | An existing MIDI clip | Editing notes: quantize, humanize, transpose, generate variations from what's there |
"ClipSlot" | A Session View clip slot | Creating content in a cell, especially an empty one |
"AudioTrack" | An audio track | Track-wide or Set-wide jobs: devices, naming, batch edits |
The SDK description says "such as" before these names, so the list isn't exhaustive. The exact strings for MIDI tracks, audio clips, scenes, devices or Arrangement selections aren't in the facts covered here. Before you guess something like "Scene", open the TypeDoc API reference and look up the accepted values for the scope parameter. Copy the strings from there exactly.
MidiClip vs ClipSlot: the most common choice
For MIDI tools this is the decision you'll face most often, and the answer depends on whether your tool needs existing notes.
Choose MidiClip when you transform notes
A resolved MidiClip exposes notes, an array of objects with pitch, startTime, duration, velocity, muted, probability and more, with times in beats. If your tool reads that array, changes it and writes it back, attach it to "MidiClip". Users can't trigger it on an empty cell, where it would have nothing to work with.
// Sketch only: check the TypeDoc reference for imports and exact signatures
commands.registerCommand("myext.halfVelocity", async (handle) => {
const clip = context.getObjectFromHandle(handle, MidiClip);
// clip.notes: [{ pitch, startTime, duration, velocity, muted, probability, ... }]
// ...modify velocities and write the notes back
});
ui.registerContextMenuAction("MidiClip", "Halve Velocities", "myext.halfVelocity");For a full walkthrough of this pattern, see Build Your First Ableton Live Extension: A MIDI Clip Command.
Choose ClipSlot when you create clips
Generators belong on the slot. A user right-clicks an empty cell, asks for something, and a clip appears there. the-fnk — Ableton MCP works this way. It adds an "Ask Claude…" action to Session View clip slots, takes a plain-language instruction and generates or edits MIDI in that cell. Because a slot can be empty or full, a slot-scoped tool can handle both cases. Your command does have to check which case it's in.
How a ClipSlot handle resolves, and how to tell whether it already holds a clip, is in the API reference. Look up the slot class rather than assuming its property names mirror MidiClip.
Track scopes for batch work
Track scopes suit tools that work on many things at once. When a user right-clicks a track header, they're thinking about the whole track, or the whole mix.
Repeat It is listed as working on audio and MIDI tracks. It adds, removes and organizes Ableton audio effects across the selected tracks or every track in the Set. That's a devices job, but the track is the natural entry point because the tool changes several tracks at once.
Scene Name Committer makes a less obvious choice. It renames scenes, yet you trigger it by right-clicking an audio or MIDI track and choosing "Commit Scene Names From Track". It reads clip names from that track's Session View clip slots and writes them to the matching scenes. The track scope fits because the track is the input the user needs to pick, while scenes are only where the output goes. A useful rule: scope to the thing the user has to choose, not the thing you modify.
If your tool should work on both audio and MIDI tracks, as both of these do, you'll need to register the action for each track type. "AudioTrack" is confirmed. Get the MIDI-track equivalent from the reference.
Scenes, devices and Arrangement selections
Ableton lists scenes and devices among the items users can right-click to reach extensions, so those menus exist. Their scope strings, and the classes you'd pass to getObjectFromHandle for them, aren't covered here. Check the SDK documentation for:
- The exact scope string for scenes and for devices
- Whether device scopes differ by device type
- Whether there's a scope for Arrangement View time selections, and what its handle resolves to
On that last point, PS Clip Jockey lists "Arrangement selection" alongside MIDI clip and audio clip. It brings a ghost-clip workflow to Live: tag a master clip, edit it, then push the change to linked clips across the arrangement. Treat its listing as evidence that Arrangement-level entry points are possible, and read the reference for how they're declared.
Not every listing names a scope. Paulstretch For Live runs extreme audio stretching in its own dialog, but its marketplace entry doesn't state which item it attaches to. If you're studying how others pick scopes, open the source repositories linked from extension pages. Searching for registerContextMenuAction shows the exact strings authors used.
Registering one tool in several places
One command can be attached to more than one scope. Progressive is listed on both clip slot and MIDI track. It generates well-known chord progressions in a chosen key as Session clips, or as an Arrangement row. A slot entry point suits "put a progression here". A track entry point suits "lay out a progression across this track".
Some guidelines if you go multi-scope:
- Give each entry its own title. "Generate Progression Here" on a slot and "Generate Progression Down Track" on a track tell users what each will do.
- Consider separate commands. If the behaviour differs by scope, two commands with clear IDs are easier to maintain than one command that works out where it was called from.
- Don't spray the menu. Every scope you add is another line in someone's right-click menu. Only add a scope if the action makes sense from that item.
A quick decision checklist
- Does the tool need existing notes? Use
"MidiClip". - Does it create a clip in a cell? Use
"ClipSlot". - Does it work across a track or the whole Set? Use a track scope (
"AudioTrack", plus the MIDI-track string from the docs). - Does the user need to pick an input that differs from what gets changed? Scope to the input.
- Scenes, devices or Arrangement selections? Get the scope string and handle class from the API reference first.
Finally, test every scope you register by right-clicking the real item in Live. Load the extension with extensions-cli's run command, and check that the action appears where you expect and not elsewhere. Live 12 Suite on beta 12.4.5 or later is required. If you don't have it yet, start at the Ableton beta program. When you're ready to share, package the .ablx and submit it to the marketplace. Listing the items it works on helps users find it.