The Synth Studio offers 23 operations to the AI agent in your browser, through WebMCP. This page lists every one: what it does, what it takes, and what it answers when it refuses. It is for someone connecting an agent to the studio, and for anyone who wants to see how a set of agent tools is cut.
The studio an agent works on is the one you are looking at.
WebMCP is a draft: the specification we read is dated 13 November 2026, and the API has
already changed shape more than once. It is in Chrome only, and off until you turn on a
flag. With the flag, document.modelContext is there from Chrome 150; every call on this
page was run on Chrome 155, 156 and 157. Firefox and Safari do not have it. We ran each
tool by hand through the browser's own API. We have not yet held a real conversation
between an AI agent and the studio.
To turn the flag on and see the tools yourself, follow How to try Synth Studio with the AI agent in your browser.
How to read this page
Where it comes from. A script built this page on 15 November 2026 from the studio's
own tool definitions, the file resources/tools/audio/synth-studio/webmcp/definitions.js.
Each description below is the text the agent reads, word for word, and a test fails when
one drifts; they were last brought in step on 21 November 2026, when a drum pad became
able to play another drum. Each table is the tool's input schema. The error codes were
read out of each tool's handler.
Names. A tool is registered as synth_ plus its name, so the studio's tools cannot
collide with another tool's on the same page.
Counting. Tracks, steps and pads count from 1, as they do on screen.
Input. The studio checks an agent's arguments against the table before the tool runs. The browser does not do that for it. A field that is not in the table is refused, and a refused call changes nothing.
Answers. A call never rejects. It resolves to JSON in one of two shapes. In the DevTools console, with the studio open:
const tools = await document.modelContext.getTools()
const call = async (name, input = {}) =>
JSON.parse(await document.modelContext.executeTool(tools.find((t) => t.name === name), input))
await call('synth_set_key', { root: 'D', scale: 'minor' })
{ "ok": true, "result": { "root": "D", "scale": "minor", "scaleLock": true } }
And a call that cannot work, on the starter project with its three tracks:
await call('synth_get_pattern', { track: 5 })
{
"ok": false,
"error": {
"code": "no_such_track",
"message": "There are 3 tracks; track 5 does not exist.",
"details": { "tracks": 3 }
}
}
Hints. A tool can carry three hints for the browser:
- read-only (6 of the 23): the tool changes nothing.
- consequential (
synth_remove_track): the tool removes work. The specification lets a browser ask you before it runs one. We have not seen that prompt ourselves. - untrusted content (
synth_get_state,synth_get_sound,synth_list_library,synth_list_projects): the answer repeats text the page did not write. A sound's name can arrive in a shared link, a project's name in a file, and text like that can carry instructions aimed at an agent.
Undo. Every editing call is one step in the history you use yourself. Undo in the studio takes back the latest edit, whoever made it.
Errors every tool can return
These come from the layer under the tools, so any of them can answer with one.
| Code | When |
|---|---|
invalid_input |
The arguments do not fit the tool's table. details.errors lists each path and message. The tool did not run. |
cancelled |
The agent cancelled the call. |
timeout |
A tool with a time limit took longer than it. |
busy |
More than 16 calls were already waiting. Calls run one at a time, in the order they arrive. |
internal |
The tool failed in a way it did not plan for. The agent gets no detail; the error is in the browser console. |
Reading the studio
These change nothing. An agent starts with synth_get_state.
synth_get_state
Read the studio. Read the Synth Studio as it is now: the open project (id and name), whether it is playing, tempo, swing, key and scale, every track (kind, sound, mute, solo, volume, pattern slot, how many steps and notes), the selected track, the arpeggiator, and whether audio can start. Call this first, and again after the person may have changed something.
Hints: read-only (readOnlyHint), untrusted content (untrustedContentHint).
Input: none.
The answer starts with project: { "id", "name", "kept" }. The id is null while the
open project is the starter nobody has changed: the studio keeps a project from its first
edit. kept is false there, and in a browser that gives the page no storage (a private
window), where projects last for the visit.
Its own errors: none.
synth_get_sound
Read a sound. Read the sound on a track: its name, the four macros (0 to 1, 0.5 is neutral) and its parameter values. A drum track also lists its eight pads, each with the drum it plays. Pass group to read one part only (for example "filter" or "env1").
Hints: read-only (readOnlyHint), untrusted content (untrustedContentHint).
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. | |
group |
choice | osc1, osc2, sub, noise, voice, filter, env1, env2, env3, lfo1, lfo2, amp, fx |
Only parameters whose id starts with this. |
A field that is not in this table is refused.
Its own errors:
no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
synth_list_params
List the controls. List the sound parameters that synth_set_params accepts, with each one's type, range or choices, and default. Groups: osc1, osc2, sub, noise, voice, filter, env1 (amp envelope), env2 (filter envelope), env3, lfo1, lfo2, amp, fx. Times are seconds, filter.cutoff and LFO rates are Hz. Drum tracks use the fx group and the pad controls, and a pad can be given another drum ("pad3.model").
Hints: read-only (readOnlyHint).
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
group |
choice | osc1, osc2, sub, noise, voice, filter, env1, env2, env3, lfo1, lfo2, amp, fx |
Only this group. |
A field that is not in this table is refused.
Its own errors: none.
synth_list_library
Browse sounds, kits and beats. List what can be loaded: "sounds" (synth sounds, the factory set and the person's saved ones), "kits" (drum kits, each with the drum on its pads 1 to 8) or "beats" (whole starter projects). Returns ids for synth_load_sound, synth_add_track and synth_new_project.
Hints: read-only (readOnlyHint), untrusted content (untrustedContentHint).
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
type |
choice | sounds, kits, beats |
yes | |
category |
choice | bass, lead, pad, keys, pluck, texture |
For sounds: only this category. |
A field that is not in this table is refused.
Its own errors: none.
synth_get_pattern
Read a pattern. Read the pattern a track is on: its length in steps (a step is a sixteenth note; 16 steps is one bar) and every note with its id, step (from 1), MIDI note, length in steps and velocity. On a drum track each note also names its pad (1 to 8) and the drum that pad plays in this track's kit (in most kits: 1 kick, 2 snare, 3 clap, 4 closed hat, 5 open hat, 6 low tom, 7 high tom, 8 perc).
Hints: read-only (readOnlyHint).
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. |
A field that is not in this table is refused.
Its own errors:
no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
Changing a sound
Both select the track they work on, as clicking it does.
synth_set_params
Change a sound. Change the sound on a track: parameters by id (see synth_list_params) and/or the macros tone, shape, space, motion (0 to 1). A choice takes its name ("saw"), a switch true or false, anything else a number inside its range. Out-of-range or unknown values are refused and nothing changes. On a drum track use the fx parameters and pad controls such as "pad1.decay"; "pad3.model": "rim" gives pad 3 another drum (the choices are in synth_list_params) and resets that pad's tune, decay, tone and punch to the drum's own, so do not send those for the same pad in the same call. One call is one undo step. Selects the track.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. | |
params |
object | up to 32 entries; any name, each value number or string or boolean | For example {"filter.cutoff": 800, "osc1.wave": "square", "fx.reverb.on": true}. | |
macros |
object | |||
macros.tone |
number | 0 to 1 | ||
macros.shape |
number | 0 to 1 | ||
macros.space |
number | 0 to 1 | ||
macros.motion |
number | 0 to 1 |
A field that is not in this table is refused.
Its own errors:
invalid_params: A parameter id is unknown, a value is out of its range, or the parameter does not exist on this kind of track.details.errorslists each one. Nothing was changed.nothing_to_change: Neitherparamsnormacrosheld anything.no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
synth_load_sound
Load a sound. Put a sound from the library on a track, replacing the sound there (its pattern stays). Synth sounds go on synth tracks and kits on drum tracks. One undo step. Selects the track.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
id |
string | 1 to 80 characters | yes | From synth_list_library, for example "factory:glass-pluck". |
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. |
A field that is not in this table is refused.
Its own errors:
no_such_track: The track number is higher than the number of tracks.details.trackshas the count.no_such_sound: No sound, kit or saved sound has that id.wrong_kind: A drum kit was asked for on a synth track, or a synth sound on a drum track.
Transport, key and playing
Starting the sequencer and playing notes need sound, and sound needs the person to have clicked the page once.
synth_set_transport
Play, stop, tempo. Start or stop the sequencer, and set tempo (BPM), swing (0.5 is straight, up to 0.75) and the metronome. Only the fields given change. Starting needs audio: if the person has not clicked the page yet this answers audio_locked and changes nothing.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
playing |
boolean | true or false |
||
bpm |
integer | 40 to 240 | ||
swing |
number | 0.5 to 0.75 | ||
metronome |
boolean | true or false |
At least one field must be given. A field that is not in this table is refused.
Its own errors:
audio_locked: The page may not make sound yet. The message tells the agent to ask the person to click or press a key on the studio once.audio_failed: The audio engine could not start in this browser.
synth_set_key
Set the key. Set the project's key: root note, scale, and scale lock (when on, the on-screen keys and the piano roll only offer notes of the scale). Existing notes are not transposed. Only the fields given change.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
root |
choice | C, C#, D, D#, E, F, F#, G, G#, A, A#, B, Db, Eb, Gb, Ab, Bb |
||
scale |
choice | major, minor, dorian, phrygian, lydian, mixolydian, harmonicMinor, pentatonicMajor, pentatonicMinor, blues, chromatic |
||
scaleLock |
boolean | true or false |
At least one field must be given. A field that is not in this table is refused.
Its own errors: none.
synth_set_arp
Set the arpeggiator. Turn the arpeggiator on or off and set how it plays held notes: mode, rate (note value), octave range, and hold (keeps going after the keys are released). It acts on notes played live, not on the pattern. Only the fields given change.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
on |
boolean | true or false |
||
mode |
choice | up, down, updown, random, played |
||
rate |
choice | 1/4, 1/8, 1/8T, 1/16, 1/16T, 1/32 |
||
octaves |
integer | 1 to 4 | ||
hold |
boolean | true or false |
At least one field must be given. A field that is not in this table is refused.
Its own errors: none.
synth_play_notes
Play notes. Play up to six notes together on a track, as if the keys were held, then release them. Notes are MIDI numbers (60 is middle C); on a drum track 36 to 43 are the eight pads. The call returns when the notes are released, so calls in a row make a melody. If recording is armed the notes are recorded, as they are for a player. Needs audio (see audio_locked).
Hints: none. Time limit: 8 seconds, then timeout.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
notes |
array | 1 to 6 items; each integer 0 to 127 | yes | |
velocity |
number | 0.05 to 1 | How hard. Default 0.8. | |
durationMs |
integer | 50 to 4000 | How long they are held. Default 400. | |
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. |
A field that is not in this table is refused.
Its own errors:
no_such_track: The track number is higher than the number of tracks.details.trackshas the count.audio_locked: The page may not make sound yet. The message tells the agent to ask the person to click or press a key on the studio once.audio_failed: The audio engine could not start in this browser.
synth_stop_all
Stop everything. Stop the sequencer and silence every sounding or stuck note at once. Changes nothing in the project.
Hints: none.
Input: none.
Its own errors: none.
Tracks
A project has one to eight tracks, each a synth or a drum kit.
synth_add_track
Add a track. Add a track (at most 8): a synth or a drum kit, with the default sound or one from synth_list_library. It gets an empty pattern as long as the selected track's, and becomes the selected track. One undo step.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
kind |
choice | synth, drums |
yes | |
soundId |
string | 1 to 80 characters |
A field that is not in this table is refused.
Its own errors:
tracks_full: The project already has eight tracks.no_such_sound: No sound, kit or saved sound has that id.wrong_kind: A drum kit was asked for on a synth track, or a synth sound on a drum track.
synth_set_track
Mix or select a track. Change a track's mixer settings: mute, solo, volume (0 to 1), pan (-1 left to 1 right), and which of its eight pattern slots (A to H) plays; while playing a new slot starts at the next bar. select: true also makes it the selected track on screen. Only the fields given change.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | yes | Track number as on screen, from 1. |
mute |
boolean | true or false |
||
solo |
boolean | true or false |
||
volume |
number | 0 to 1 | ||
pan |
number | -1 to 1 | ||
slot |
choice | A, B, C, D, E, F, G, H |
||
select |
boolean | true or false |
At least 2 fields must be given. A field that is not in this table is refused.
Its own errors:
no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
synth_remove_track
Remove a track. Remove a track with its sound and all eight of its patterns. The last track cannot be removed. One undo step brings it back. Ask before removing a track the person made.
Hints: consequential (consequentialHint).
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | yes | Track number as on screen, from 1. |
A field that is not in this table is refused.
Its own errors:
last_track: The project has one track left, and it keeps at least one.no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
Projects
The studio keeps several projects in the browser, each with a name, and one of them is open. Every edit is saved to the open project as it is made. Starting a new project or opening another saves the open one first and leaves it in the list, so none of these tools overwrites a project. Each project has its own undo history, for as long as it is open: after a switch there is nothing to undo.
A project is kept from its first edit. One started from a beat and never changed is
dropped when another project opens, and its id then answers no_such_project.
The studio keeps at most 200 projects.
synth_list_projects
List the projects. List the projects kept in this browser, the most recently worked on first: id, name, how many tracks, tempo, key and when each was last changed. The open one is marked. Use the ids with synth_open_project, synth_rename_project and synth_duplicate_project.
Hints: read-only (readOnlyHint), untrusted content (untrustedContentHint).
Input: none.
The answer is { "open": { "id", "name", "kept" }, "projects": [{ "id", "name", "tracks", "bpm", "key", "updated", "open"? }], "max": 200, "keptIn" }.
keptIn is "this browser", or says that the projects last for this visit only.
Its own errors: none.
synth_new_project
Start a new project. Start a new project and open it: empty (a drum kit and a lead, no notes), or from one of the studio's beats (beat, ids from synth_list_library, type "beats"). Use this for every new piece of music: the project that was open is saved first and stays in synth_list_projects, so nothing is overwritten. Give it a name; a name already in use gets a number added, and the name actually given is returned. A project started from a beat and never changed is not kept once another project is opened. A beat starts playing if audio is allowed.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
beat |
choice | first-beat, boom-bap, night-trap, slow-jam, neo-soul, electro-funk, polymeter-garden |
Start from this beat. Left out: an empty project. | |
name |
string | 1 to 80 characters |
A field that is not in this table is refused.
Its own errors:
| Code | When |
|---|---|
projects_full |
There are 200 projects already. The person has to delete one in the project picker. |
not_kept |
The browser refused to store the project. Nothing already kept was lost. |
synth_open_project
Open a project. Open one of the kept projects (ids from synth_list_projects). The project that was open is saved first. Playback stops, and undo starts fresh: each project has its own undo history, for as long as it is open.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
id |
string | 1 to 64 characters | yes |
A field that is not in this table is refused.
Its own errors:
| Code | When |
|---|---|
no_such_project |
There is no project with that id, or it is not there any more. |
synth_rename_project
Rename a project. Give a project a new name: the open one, or another by id. Name a project for what it is ("Electro in D minor"), so the person can find it. Not an undo step.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
name |
string | 1 to 80 characters | yes | |
id |
string | 1 to 64 characters | Left out: the open project. |
A field that is not in this table is refused.
Its own errors:
| Code | When |
|---|---|
no_such_project |
There is no project with that id. |
invalid_name |
The name has no visible character. |
not_kept |
The browser refused to store the new name. |
synth_duplicate_project
Duplicate a project. Make a copy of a project (the open one, or another by id) and open the copy. The original stays exactly as it is, so this is how to try a variation without losing what is there. name names the copy; left out, it gets the original's name with a number.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
id |
string | 1 to 64 characters | Left out: the open project. | |
name |
string | 1 to 80 characters |
A field that is not in this table is refused.
Its own errors:
| Code | When |
|---|---|
no_such_project |
There is no project with that id. |
projects_full |
There are 200 projects already. |
not_kept |
The browser refused to store the copy. |
synth_open_beat
Start a new project from a beat. Start a new project from one of the studio's beats (ids from synth_list_library, type "beats"). The same as synth_new_project with a beat. The project that was open is saved and stays in synth_list_projects; nothing is replaced. Starts playing if audio is allowed.
Until 15 November 2026 this tool replaced the open project. It no longer does.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
id |
choice | first-beat, boom-bap, night-trap, slow-jam, neo-soul, electro-funk, polymeter-garden |
yes |
A field that is not in this table is refused.
Its own errors:
| Code | When |
|---|---|
projects_full |
There are 200 projects already. |
Patterns and history
A step is a sixteenth note, and 16 steps are one bar.
synth_edit_pattern
Write a pattern. Edit the pattern a track is on, in this order: set its length in steps (1 to 64; 16 is one bar), clear it, remove notes by id, add notes. A note has a step (from 1), a MIDI note, and optionally a length in steps, a velocity, a chance (0 to 1) and a ratchet (1 to 4 hits). On a drum track the note is 36 to 43, pads 1 to 8. In most kits that is 36 kick, 37 snare, 38 clap, 39 closed hat, 40 open hat, 41 low tom, 42 high tom, 43 perc; a kit can give a pad another drum, and synth_get_sound or synth_get_pattern says which. The whole call is one undo step and is refused as a whole if any note does not fit. Selects the track.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
track |
integer | 1 to 8 | Track number as on screen, from 1. Left out: the selected track. | |
length |
integer | 1 to 64 | ||
clear |
boolean | true or false |
||
remove |
array | up to 128 items; each string 1 to 40 characters | ||
add |
array | up to 128 items | ||
add[].step |
integer | 1 to 64 | yes | |
add[].note |
integer | 0 to 127 | yes | |
add[].length |
number | 0.25 to 64 | ||
add[].velocity |
number | 0.05 to 1 | ||
add[].chance |
number | 0 to 1 | ||
add[].ratchet |
integer | 1 to 4 |
At least one field must be given. A field that is not in this table is refused.
Its own errors:
invalid_pattern: A note is past the end of the pattern, a drum track got a note outside 36 to 43, an id to remove does not exist, or the call asked for nothing.details.errorslists each one. Nothing was changed.no_such_track: The track number is higher than the number of tracks.details.trackshas the count.
synth_history
Undo or redo. Undo the last edit or redo the one just undone. The history is shared with the person: undo takes back the latest edit, whoever made it.
Hints: none.
| Field | Type | Allowed | Required | Notes |
|---|---|---|---|---|
action |
choice | undo, redo |
yes |
A field that is not in this table is refused.
Its own errors:
nothing_to_undo: The history has nothing to undo.nothing_to_redo: The history has nothing to redo.
What is not offered, on purpose
Some things in the studio have no tool, because a person should decide them:
- Deleting a project. Deleting is yours to do, in the project picker, where it asks first and can be undone for a few seconds.
- Downloading a project, and opening a project file. A download leaves the browser, and a file is something you chose.
- Saving and deleting sounds. Saved sounds are storage you own.
- Audio takes. Recording a take ends in a download.
- Share links. A link carries your sound to whoever you give it to.
- MIDI. Connecting an instrument is yours to do.
There is also no tool for the per-step parameter locks. synth_set_params changes the
sound itself, and closes an open step in the inspector first so that it does.
Registering these tools sends nothing to us. They are handed to your own browser. What your browser's agent passes on to its AI model is up to that browser and its settings, as the privacy page says under "AI agents in your browser".