MCP ScannerCustom audit
All servers

TwelveTake-Studios/reaper-mcp

Model Context Protocol server that enables AI assistants to control REAPER for mixing, mastering, MIDI composition and music production.

Packagetwelvetake-reaper-mcp
Version1.11.0 in pyproject.toml
PublisherTwelveTake-Studios community
MCP Registrycom.twelvetake/reaper-mcp
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 114Forks 20Last push 2026-11-09
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence87%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 31 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 2 of 190 tools, prompts and resources could not be followed through the code
  • 2 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 188 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
add_compressor, add_envelope_point, add_eq, add_fx_envelope_point, add_limiter, add_marker and 182 more
188 of 188

No tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files188 tools · add_compressor, add_envelope_point, add_eq +185

Tool annotations

188 of 188 tools declare annotations. readOnlyHint 58, destructiveHint 29, idempotentHint 12.

Tools, prompts and resources (188: 188 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

add_compressortool Add ReaComp to a track.Filesoutside text
Add ReaComp to a track.

    Returns:
        Object with fx_index.
add_envelope_pointtool Add a point to an envelope. A missing Volume, Pan, Width, Mute or Trim Volume envelopeFilesoutside text
Add a point to an envelope. A missing Volume, Pan, Width, Mute or Trim Volume envelope
    (or a Pre-FX one) is created first: REAPER starts it with a point at 0:00 holding the
    track's current value, and the response has envelope_created.

    Args:
        envelope_name: Envelope name.
        time: Time position in seconds.
        value: Raw value. Pan -1..1 with +1 = LEFT (the reverse of set_track_pan); Width -1..1; Mute 0 = muted, 1 = unmuted. A raw volume value depends on the envelope's scaling, so use value_db there.
        shape: Point shape (0=linear, 1=square, 2=slow start/end, 3=fast start, 4=fast end, 5=bezier).
        value_db: Level in dB for Volume, Volume (Pre-FX) and Trim Volume; -150 is silence. Pass this or value.

    Returns:
        point_index, value, and shown: the value as REAPER displays it ("-6.00dB", "50%L").
add_eqtool Add ReaEQ to a track.Filesoutside text
Add ReaEQ to a track.

    Returns:
        Object with fx_index.
add_fx_envelope_pointtool Add an automation point to an FX parameter envelope.Filesoutside text
Add an automation point to an FX parameter envelope.

    Args:
        time: Time position in seconds.
        value: The parameter's own value, within the min..max track_fx_get_param reports (a JSFX dB slider takes dB).
        shape: Point shape (0=linear, 1=square, 2=slow start/end, 3=fast start, 4=fast end, 5=bezier).

    Returns:
        point_index, value, and shown: the value as REAPER displays it.
add_limitertool Add ReaLimit (brickwall limiter) to a track.Filesoutside text
Add ReaLimit (brickwall limiter) to a track.

    Returns:
        Object with fx_index.
add_markertool Add a marker at a position.Filesoutside text
Add a marker at a position.

    Args:
        position: Position in seconds.
        name: Marker name.
        color: Marker color (0 = default).

    Returns:
        Object with marker index.
add_mastering_chaintool Add a standard mastering chain to the master track.Filesoutside text
Add a standard mastering chain to the master track.

    Adds the following plugins in order:
    1. ReaEQ (corrective EQ)
    2. ReaComp (glue compression)
    3. ReaEQ (tonal shaping)
    4. ReaLimit (brickwall limiter)

    Returns:
        Object with list of added FX indices.
add_midi_notetool Add a MIDI note to an item using musical timing (beats).Filesoutside text
Add a MIDI note to an item using musical timing (beats).

    Args:
        pitch: MIDI note number (0-127, 60 = middle C).
        velocity: Note velocity (1-127).
        start_beat: Start position in beats from the item start (0 = first beat).
        length_beats: Note length in beats (0.25 = sixteenth, 0.5 = eighth, 1.0 = quarter).

    Example:
        Four-on-the-floor kick: add_midi_note(0, 0, 36, 110, start_beat=0, length_beats=0.25)
        then start_beat=1, 2, 3.
add_midi_notes_batchtool Add multiple MIDI notes to an item in one call, using musical timing (beats).Filesoutside text
Add multiple MIDI notes to an item in one call, using musical timing (beats).

    Args:
        notes: List of note dicts with keys: pitch, velocity, start_beat, length_beats,
               channel (optional).

    Returns:
        Object with count of notes added.
add_parallel_compressiontool Set up New York style parallel compression for a track.Filesoutside text
Set up New York style parallel compression for a track.

    Creates a new bus track with heavy compression, fed by a send from the source track.

    Args:
        track_index: Source track index (0-based).
        blend_db: Send level in dB for the compressed signal (default -6dB).

    Returns:
        Object with bus_track_index, send_index, and compressor_fx_index.
add_regiontool Add a region.Filesoutside text
Add a region.

    Args:
        start: Start position in seconds.
        end: End position in seconds.
        name: Region name.
        color: Region color (0 = default).

    Returns:
        Object with region index.
arm_tracktool Arm or disarm a track for recording.Filesoutside text
Arm or disarm a track for recording.

    Args:
        arm: True to arm, False to disarm.
arm_track_envelopetool Arm or disarm an envelope for recording.Filesoutside text
Arm or disarm an envelope for recording.

    Args:
        envelope_name: Envelope name.
        arm: True to arm, False to disarm.
clear_all_peak_indicatorstool Clear the peak hold indicators on all tracks (including master).Filesoutside text
Clear the peak hold indicators on all tracks (including master).

    Resets the held peak values that accumulate during playback. Use before a
    fresh playback pass when you want clean readings for gain staging.
clear_envelopetool Delete all points from an envelope.Filesoutside textdestructive (declared)
Delete all points from an envelope.

    Args:
        envelope_name: Envelope name.
clear_fx_envelopetool Clear all automation points from an FX parameter envelope.Filesoutside textdestructive (declared)
Clear all automation points from an FX parameter envelope.

    Returns:
        Object with deleted_count.
clear_midi_itemtool Delete all MIDI notes from an item.Filesoutside textdestructive (declared)
Delete all MIDI notes from an item.

    Returns:
        Object with count of notes deleted.
clear_time_selectiontool Clear the time selection.Filesoutside text
Clear the time selection.
configure_reacomp_sidechaintool Configure ReaComp to use sidechain input for detection.Filesoutside text
Configure ReaComp to use sidechain input for detection.

    Args:
        track_index: Track index (0-based) where ReaComp is located.
        fx_index: FX index (0-based) of ReaComp in the FX chain.
        use_sidechain: True to use auxiliary input (channels 3-4), False for main input.

    Returns:
        Object with configuration status.
copy_selected_itemstool Copy selected items to clipboard.Filesoutside text
Copy selected items to clipboard.
create_bustool Create a submix/stem bus and route specified tracks to it.Filesoutside text
Create a submix/stem bus and route specified tracks to it.

    Args:
        name: Name for the bus track.
        source_track_indices: List of track indices to route to this bus.

    Returns:
        Object with bus_track_index and routing info.
create_click_tracktool Add a click track at the end of the track list. It holds REAPER's click source, which follows the tempo map and time signature changes and accents each downbeatFilesoutside text
Add a click track at the end of the track list. It holds REAPER's click source, which follows the tempo map and time signature changes and accents each downbeat.

    Args:
        start: Start in seconds.
        end: End in seconds (default: the end of the project).
        name: Track name.

    Returns:
        track_index, item_index, start, end.
create_midi_itemtool Create an empty MIDI item on a track.Filesoutside text
Create an empty MIDI item on a track.

    Args:
        position: Start position in seconds.
        length: Length in seconds.

    Returns:
        Object with item info including the new item_index.
create_projecttool Create a new REAPER project.Filesoutside textdestructive (declared)
Create a new REAPER project.

    Note: REAPER has no API to name a project that has never been saved, so this server
    has no way to name one either. The removed `name` parameter never took effect.
create_sendtool Create a send from one track to another.Filesoutside text
Create a send from one track to another.

    Args:
        src_track: Source track index (0-based).
        dest_track: Destination track index (0-based).

    Returns:
        Object with send_index.
crop_to_active_taketool Crop a media item to its active take, discarding all other takes.Filesoutside textdestructive (declared)
Crop a media item to its active take, discarding all other takes.
cut_selected_itemstool Cut selected items to clipboard.Filesoutside textdestructive (declared)
Cut selected items to clipboard.
delete_envelope_pointtool Delete an envelope point.Filesoutside textdestructive (declared)
Delete an envelope point.

    Args:
        envelope_name: Envelope name.
delete_fx_envelope_pointtool Delete an automation point from an FX parameter envelope.Filesoutside textdestructive (declared)
Delete an automation point from an FX parameter envelope.

    Args:
        point_index: Point index (0-based) to delete.
delete_itemtool Delete a media item.Filesoutside textdestructive (declared)
Delete a media item.
delete_markertool Delete a marker by index.Filesoutside textdestructive (declared)
Delete a marker by index.
delete_midi_notetool Delete a MIDI note from an item.Filesoutside textdestructive (declared)
Delete a MIDI note from an item.
delete_regiontool Delete a region by index.Filesoutside textdestructive (declared)
Delete a region by index.
delete_selected_itemstool Delete all selected items.Filesoutside textdestructive (declared)
Delete all selected items.
delete_sendtool Delete a send from a track.Filesoutside textdestructive (declared)
Delete a send from a track.

    Args:
        track_index: Source track index (0-based).
        send_index: Send index (0-based) to delete.
delete_taketool Delete a specific take from a media item.Filesoutside textdestructive (declared)
Delete a specific take from a media item.

    Args:
        take_index: Take index to delete (0-based). The take is activated first, then removed.
delete_tracktool Delete a track.Filesoutside textdestructive (declared)
Delete a track.

    Args:
        track_index: Track index to delete (0-based). Cannot delete master track (-1).
duplicate_itemtool Duplicate a media item.Filesoutside text
Duplicate a media item.

    Returns:
        Object with new item info.
explode_takestool Explode all takes of a media item in place (each take becomes its own overlapping item).Filesoutside textdestructive (declared)
Explode all takes of a media item in place (each take becomes its own overlapping item).
find_eqtool Find ReaEQ on a track, optionally adding it if absent.Filesoutside text
Find ReaEQ on a track, optionally adding it if absent.

    Args:
        instantiate: If True and ReaEQ is not present, add it.

    Returns:
        Object with 'ret' = the FX index of ReaEQ, or -1 if not found.
find_silencetool Find the quiet stretches in one item's audio, or in every audio item on a track: where noFilesoutside textread-only (declared)
Find the quiet stretches in one item's audio, or in every audio item on a track: where no
    sample peaks above threshold_db (dBFS) for at least min_length_s seconds. It reads the take's
    source before item and take volume, fades and FX; take offset, play rate, reversed takes and
    looped items are mapped to project time, and each edge is measured to the sample. Gaps between
    items are not audio and are not reported. min_length_s is at least 0.05.

    Returns:
        silences: [{item_index, start, end, length, at_item_start, at_item_end, beyond_source}]
        in project seconds (beyond_source: the item runs past its source and plays nothing there);
        items_scanned; skipped: MIDI and empty items with a reason; scan_ms.
get_active_taketool Get the index of the active take of a media item.Filesoutside textread-only (declared)
Get the index of the active take of a media item.

    Returns:
        Object with 'ret' = active take index (-1 if the item has no active take).
get_all_trackstool Get information about all tracks in the project, in get_track's shape plus index.Filesoutside textread-only (declared)
Get information about all tracks in the project, in get_track's shape plus index.
get_cursor_positiontool Get the edit cursor position.Filesoutside textread-only (declared)
Get the edit cursor position.

    Returns:
        Object with cursor position in seconds.
get_envelope_point_counttool Get the number of points in an envelope.Filesoutside textread-only (declared)
Get the number of points in an envelope.

    Args:
        envelope_name: Envelope name.

    Returns:
        Object with point count.
get_envelope_pointstool Get all points from an envelope.Filesoutside textread-only (declared)
Get all points from an envelope.

    Args:
        envelope_name: Envelope name.

    Returns:
        points (time, value, shape, shown). A volume envelope adds value_db to each point, and scaling.
get_eq_band_enabledtool Check whether a ReaEQ band is enabled.Filesoutside textread-only (declared)
Check whether a ReaEQ band is enabled.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: Band type (0=hipass, 1=loshelf, 2=band, 3=notch, 4=hishelf, 5=lopass).
        bandidx: Band index within that type (0=first).

    Returns:
        Object with 'ret' boolean (true=enabled).
get_eq_bandstool Get all ReaEQ band settings in one structured call.Filesoutside textread-only (declared)
Get all ReaEQ band settings in one structured call.

    Args:
        fx_index: FX index (0-based) of ReaEQ in the FX chain.

    Returns:
        Object with a 'bands' list. Each band has band_index, bandtype,
        bandtype_name, bandidx, paramtype, paramtype_name, normval, the
        REAPER-formatted value, and (for gain params) the computed gain_db.
get_fx_envelopetool Get or create an automation envelope for an FX parameter.Filesoutside text
Get or create an automation envelope for an FX parameter.

    This enables automation of any FX parameter (e.g., a flanger knob in Guitar Rig).
    The envelope is created if it doesn't exist.

    Args:
        param_index: Parameter index (0-based). Use track_fx_get_num_params() to find available parameters.

    Returns:
        Object with envelope_name, param_name, point_count, and indices.
get_fx_envelope_pointstool Get all automation points from an FX parameter envelope.Filesoutside textread-only (declared)
Get all automation points from an FX parameter envelope.

    Returns:
        Object with list of points (time, value, shown, shape, tension, selected).
get_fx_presettool Get the current preset name of an FX.Filesoutside textread-only (declared)
Get the current preset name of an FX.

    Returns:
        Object with current preset name.
get_fx_presetstool Get list of presets available for an FX.Filesoutside textread-only (declared)
Get list of presets available for an FX.

    Returns:
        Object with list of preset names.
get_item_infotool Get information about a media item.Filesoutside textread-only (declared)
Get information about a media item.

    Returns:
        Object with item properties (position, length, take info, etc.).
get_markerstool Get all markers in the project.Filesoutside textread-only (declared)
Get all markers in the project.

    Returns:
        Object with list of markers (position, name, index).
get_master_tracktool Get information about the master track.Filesoutside textread-only (declared)
Get information about the master track.
get_midi_itemtool Get information about a MIDI item.Filesoutside textread-only (declared)
Get information about a MIDI item.

    Returns:
        Object with item info including position, length, note count.
get_midi_notestool Get all MIDI notes from an item.Filesoutside textread-only (declared)
Get all MIDI notes from an item.

    Returns:
        Object with list of notes.
get_play_positiontool Get the current playback position.Filesoutside textread-only (declared)
Get the current playback position.

    Returns:
        Object with play position in seconds.
get_play_ratetool Get the project playback rate as `rate` (1.0 is normal speed).Filesoutside textread-only (declared)
Get the project playback rate as `rate` (1.0 is normal speed).
get_play_statetool Get the current playback state.Filesoutside textread-only (declared)
Get the current playback state.

    Returns:
        Object with play state info.
get_project_lengthtool Get the length of the project (end of last item).Filesoutside textread-only (declared)
Get the length of the project (end of last item).

    Returns:
        Object with project length in seconds.
get_project_nametool Get the project name.Filesoutside textread-only (declared)
Get the project name.
get_project_pathtool Get the project path.Filesoutside textread-only (declared)
Get the project path.
get_project_summarytool Get a comprehensive summary of the current REAPER project.Filesoutside textread-only (declared)
Get a comprehensive summary of the current REAPER project.

    Returns everything needed to understand the project state and give
    useful mixing/production advice in a single call.

    Returns:
        Object with:
        - project_name: Name of the project file
        - project_path: Full path to the project
        - tempo: Project tempo in BPM
        - time_signature: {numerator, denominator}
        - project_length: Length in seconds
        - track_count: Total number of tracks
        - tracks: List of track info objects, each containing:
            - index: Track index (0-based)
            - name: Track name
            - volume_db: Volume in decibels
            - pan: Pan position (-1 to 1)
            - mute: Boolean mute state
            - solo: Boolean solo state
            - fx_count: Number of FX plugins
            - fx_names: List of FX plugin names
            - hidden_in: only for a hidden track, as in get_track
        - master: Master track info {volume_db, fx_count, fx_names, hidden_in}
        - markers: List of {index, position, name}
        - regions: List of {index, start, end, name}
get_regionstool Get all regions in the project.Filesoutside textread-only (declared)
Get all regions in the project.

    Returns:
        Object with list of regions (start, end, name, index).
get_repeat_statetool Get the current repeat state.Filesoutside textread-only (declared)
Get the current repeat state.

    Returns:
        Object with repeat state (true/false).
get_selected_itemstool Get all selected media items.Filesoutside textread-only (declared)
Get all selected media items.

    Returns:
        Object with list of selected items.
get_selected_midi_notestool Read the MIDI notes currently SELECTED in REAPER's editor for the active take.Filesoutside textread-only (declared)
Read the MIDI notes currently SELECTED in REAPER's editor for the active take.

    The escape hatch for "operate on what I've selected": select notes by hand in REAPER,
    call this to see which they are, then translate that into an explicit value filter
    (pitch range / beat window / channel) for the transform tools. Read-only, no undo.

    Returns:
        {ok, notes:[...], ret} - the selected notes, same shape as get_midi_notes (each note
        carries item-relative start_beat/end_beat). `index` is REAPER's absolute PPQ-sorted
        note index, so a partial selection is non-contiguous. Empty selection -> notes:[].
get_selected_trackstool Get indices of all selected tracks.Filesoutside textread-only (declared)
Get indices of all selected tracks.

    Returns:
        Object with list of selected track indices.
get_takestool List all takes of a media item.Filesoutside textread-only (declared)
List all takes of a media item.

    Returns:
        Object with 'takes' array (each entry: index, name, is_active) and 'ret' = take count.
get_tempotool Get the tempo at project start as `ret`, and every tempo marker as `tempo_markers`.Filesoutside textread-only (declared)
Get the tempo at project start as `ret`, and every tempo marker as `tempo_markers`.
get_time_selectiontool Get the current time selection.Filesoutside textread-only (declared)
Get the current time selection.

    Returns:
        Object with start and end times.
get_time_signaturetool Get the project time signature.Filesoutside textread-only (declared)
Get the project time signature.
get_tracktool Get information about a track.Filesoutside textread-only (declared)
Get information about a track.

    Returns:
        Object with 'info': guid, name, volume, volume_db, pan, muted, soloed,
        has_midi, has_audio, fx_names, role, and hidden_in (["arrange"], ["mixer"]
        or both) only for a hidden track.
get_track_counttool Get the total number of tracks in the current REAPER project (excluding master track).Filesoutside textread-only (declared)
Get the total number of tracks in the current REAPER project (excluding master track).
get_track_envelopetool Get a track envelope by name.Filesoutside textread-only (declared)
Get a track envelope by name.

    Args:
        envelope_name: Envelope name (e.g., "Volume", "Pan", "Mute").

    Returns:
        Object with envelope info.
get_track_fx_chunktool Get the raw state chunk from an FX plugin (includes preset/state data).Filesoutside textread-only (declared)
Get the raw state chunk from an FX plugin (includes preset/state data).

    Useful for reading VSTi state data like Toontrack EZkeys chord progressions.
    The chunk contains the full serialized state of the plugin.

    Returns:
        Object with 'chunk' containing the FX state data string.
get_track_itemstool Get all media items on a track.Filesoutside textread-only (declared)
Get all media items on a track.

    Returns:
        Object with list of items.
get_track_master_sendtool Get the master/parent send state of a track.Filesoutside textread-only (declared)
Get the master/parent send state of a track.

    Returns:
        Object with 'ret' field (1 = enabled, 0 = disabled).
get_track_num_sendstool Get the number of sends from a track.Filesoutside textread-only (declared)
Get the number of sends from a track.
get_track_peaktool Get the current peak level of a track.Filesoutside textread-only (declared)
Get the current peak level of a track.

    Args:
        channel: Channel (0=left, 1=right).

    Returns:
        Object with peak value in dB.
get_track_peak_holdtool Get the peak hold level of a track (highest peak since meters were last reset).Filesoutside textread-only (declared)
Get the peak hold level of a track (highest peak since meters were last reset).

    Returns the max peak from a previous playback without needing to be actively
    playing - play the project, stop, then call this for gain staging.

    Args:
        channel: Channel (0=left, 1=right).

    Returns:
        Object with peak hold value in dB.
get_undo_statetool Get the current undo/redo state.Filesoutside textread-only (declared)
Get the current undo/redo state.

    Returns:
        Object with undo and redo descriptions.
go_to_markertool Move the edit cursor to a marker.Filesoutside text
Move the edit cursor to a marker.
go_to_regiontool Move the edit cursor to a region start.Filesoutside text
Move the edit cursor to a region start.
humanize_midi_notestool Humanize MIDI: nudge timing and velocity by small random amounts, reproducibly.Filesoutside text
Humanize MIDI: nudge timing and velocity by small random amounts, reproducibly.

    Each note gets its own timing and velocity offset drawn from a bell curve. Note lengths
    are preserved (start and end move together) and pitches are never touched. The randomness
    is seeded, so the same take with the same seed and settings gives identical results every
    time. Velocities are clamped to 1-127 and counted in clamped; notes pushed past the item
    end are kept and reported in out_of_bounds.

    Unlike the other timing tools, a note pushed before the item start is placed at the
    item start and counted in out_of_bounds, not clamped; clamped here counts only the
    velocity clamp.

    Args:
        timing: Timing spread in beats (standard deviation); 0.02 is a subtle human feel,
            0.0 leaves timing alone.
        velocity: Velocity spread (standard deviation, in velocity units); 0.0 leaves
            velocity alone.
        seed: Any integer. The same seed, settings and take give the same result.
        max_sigma: Cap on how far one note may stray, in multiples of the spread.
insert_audio_filetool Insert an audio file onto a track.Filesoutside text
Insert an audio file onto a track.

    Args:
        file_path: Full path to the audio file.
        position: Position in seconds.

    Returns:
        Object with track_index, item_index of the created item, and position.
insert_tracktool Insert a new track at the specified index.Filesoutside text
Insert a new track at the specified index.

    Args:
        index: Position to insert track (0-based). If not specified, adds at end.
        name: Optional name for the new track.

    Returns:
        Info about the created track.
legato_midi_notestool Close the gaps in a MIDI line (legato), or set every note to one length.Filesoutside text
Close the gaps in a MIDI line (legato), or set every note to one length.

    Only note ends move; starts are never touched. "connect" extends each note's end to the
    next onset and never shortens anything; a gap wider than max_gap_beats is left as a rest
    and counted in gaps_preserved, and the last note is left alone. "fixed" instead sets every
    targeted note's length to length_beats. Notes whose new end passes the item end are kept
    and reported in out_of_bounds.

    Args:
        mode: "connect" (extend each end to the next onset) or "fixed" (set every length).
        voice: connect only. "chordal" extends to the next onset of any note, so a chord's
            notes move together; "per_pitch" extends to the next note of the SAME pitch and
            channel, keeping interleaved voices independent.
        max_gap_beats: connect only. Gaps wider than this are left as rests (>= 0).
        length_beats: fixed only. The length every targeted note is set to (> 0).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, gaps_preserved, notes:[...]}.
measure_loudnesstool Measure loudness as REAPER's loudness window does: integrated LUFS, short-term andFilesoutside textread-only (declared)
Measure loudness as REAPER's loudness window does: integrated LUFS, short-term and
    momentary max, loudness range, sample peak, plus true peak.

    Target: the master (default), a track, or one item (its track's output over the item,
    other items muted). start_time/end_time limit it to a range. It runs a render dry run, so
    it writes no files, puts selections back and adds no undo step. Measuring the master marks
    the project as modified, even though nothing in it changes.

    Returns:
        integrated_lufs, short_term_max_lufs, momentary_max_lufs, loudness_range_lu,
        sample_peak_dbfs, true_peak_dbtp, samples_over_0dbfs, duration; a note when a
        figure is approximate or unavailable.
measure_spectrumtool Measure tonal balance and stereo image: octave-band levels (31.5 Hz to 16 kHz),Filesoutside textread-only (declared)
Measure tonal balance and stereo image: octave-band levels (31.5 Hz to 16 kHz),
    spectral centroid, tilt in dB per octave, stereo correlation overall and below 150 Hz,
    side-to-mid level and left/right balance.

    Same targets and range as measure_loudness. Levels are dBFS with a full-scale sine at 0,
    as in REAPER. Needs the TwelveTake MCP Analyzer, which --install-bridge installs.
move_trackstool Move tracks, in their current order, to just above before_index. A folder moves with its children.Filesoutside text
Move tracks, in their current order, to just above before_index. A folder moves with its children.

    Args:
        before_index: Counted before the move; the track count moves them to the end.
        into_folder: Make them children of the track above the destination.

    Returns:
        tracks: [{from, to}], each listed track's index before and after.
nudge_midi_notestool Shift MIDI notes in time by a number of beats (+ = later, - = earlier).Filesoutside text
Shift MIDI notes in time by a number of beats (+ = later, - = earlier).

    Start and end move together, so note lengths are preserved. A note pushed before the
    item start clamps to it and one pushed past the item end is left there; both count in
    `out_of_bounds`, not `clamped`.

    Args:
        amount_beats: Signed beat shift (0.25 = a 16th later, -1.0 = a beat earlier). 0 = no-op.
open_projecttool Open a REAPER project file.Filesoutside textdestructive (declared)
Open a REAPER project file.

    Args:
        path: Full path to the .rpp file.
paste_itemstool Paste items from clipboard at edit cursor.Filesoutside text
Paste items from clipboard at edit cursor.
pausetool Pause playback in REAPER.Filesoutside text
Pause playback in REAPER.
playtool Start playback in REAPER.Filesoutside text
Start playback in REAPER.
quantize_midi_notestool Quantize MIDI note onsets onto the grid (tighten sloppy timing, add swing).Filesoutside text
Quantize MIDI note onsets onto the grid (tighten sloppy timing, add swing).

    Onsets snap to the PROJECT bar/beat grid, not to an offset from the item's own start,
    and note lengths are preserved: start and end move together. Notes that land past the
    item end are kept, and one that would land before the item start is placed at it; both
    are counted in `out_of_bounds` (`clamped` stays 0 here).

    Args:
        grid: Grid spacing in beats: 0.25 = 1/16, 0.5 = 1/8, 1.0 = 1/4. Must be > 0.
        strength: 0.0-1.0. 1.0 snaps exactly onto the grid, 0.5 moves each note halfway
            there, 0.0 is a no-op.
        swing: 0.0-1.0. 0.0 = straight, 1.0 = full triplet feel (off-beats at 66.7%),
            scaling linearly between. Only the off-beat (odd) grid cells are delayed.
ramp_midi_note_velocitiestool Apply a linear velocity ramp (crescendo / decrescendo) across MIDI notes.Filesoutside text
Apply a linear velocity ramp (crescendo / decrescendo) across MIDI notes.

    Velocities interpolate by onset: the earliest note in the filtered set gets
    start_velocity, the latest gets end_velocity, everything between is linear. Notes
    sharing an onset (a chord) get the same velocity. Results clamp to 1-127.

    Args:
        start_velocity: Velocity at the earliest onset (1-127; out of range clamps, not an error).
        end_velocity: Velocity at the latest onset (1-127).
recordtool Start recording in REAPER.Filesoutside text
Start recording in REAPER.
redotool Redo the last undone action in REAPER.Filesoutside textdestructive (declared)
Redo the last undone action in REAPER.

    Returns:
        Object with redo description.
remove_overlapping_midi_notestool Clean up overlapping MIDI notes (same pitch stacked on itself).Filesoutside textdestructive (declared)
Clean up overlapping MIDI notes (same pitch stacked on itself).

    Two notes conflict only if they share a pitch AND a channel AND overlap in time, so a
    chord is never a conflict and notes that merely touch are left alone. "trim" shortens the
    earlier note to stop where the next begins, losing nothing; "delete" drops one note of
    each overlapping pair, keeping the louder (ties go to the longer note).

    Either mode can remove notes: notes stacked on the exact same onset collapse to the
    loudest, since there is nothing to trim between them, and a trim left shorter than
    min_length_beats is removed rather than left as a click.

    Args:
        mode: "trim" (shorten the earlier note) or "delete" (drop the quieter note).
        min_length_beats: A trimmed note left shorter than this is removed instead. Default
            1/128 of a beat; 0 disables it.
        pitch_low, pitch_high: Notes outside the filter are invisible: never touched,
            and never counted as an overlap partner.

    Returns:
        {ok, mode, notes_changed, clamped, skipped, out_of_bounds, notes_removed, trimmed,
        deduped, deleted, notes:[...]} where notes_removed = deduped + deleted.
rename_markertool Rename the marker get_markers numbers marker_index, keeping its position and color. An empty name clears it.Filesoutside text
Rename the marker get_markers numbers marker_index, keeping its position and color. An empty name clears it.
rename_regiontool Rename the region get_regions numbers region_index, keeping its bounds and color. An empty name clears it.Filesoutside text
Rename the region get_regions numbers region_index, keeping its bounds and color. An empty name clears it.
render_projecttool Render the project's master mix to an audio file. Apart from the path, source andFilesoutside textdestructive (declared)
Render the project's master mix to an audio file. Apart from the path, source and
    range, the project's own render settings apply: its format (a .wav extension selects
    WAV), and its normalization, limiter, fades, trim and pad, which the response lists in
    `processing` (empty when none applies).

    If the target file already exists, this returns an error unless overwrite=True
    (which deletes the existing file first), as REAPER's overwrite prompt would block.

    A plugin still loading samples can render silence, or sound that starts later than the
    music (`sound_starts_s`); delay_seconds waits before the render, like REAPER's "Delay
    render start" but without its prompt.

    Args:
        output_path: Full path for output file (extension determines format).
        start_time: Start time in seconds (None = project start).
        end_time: End time in seconds (None = project end).
        tail_seconds: Extra seconds to render at end for reverb tails.
        overwrite: True to replace an existing file at output_path.
        skip_postprocessing: True to render without the project's normalization, limiter,
            fades, trim and pad, for a file you will measure or compare.
        delay_seconds: Seconds to wait before rendering (None = the project's setting,
            0 = no wait).
        sound_threshold_db: Level (dBFS) the file must exceed to count as sound.

    Returns:
        Object with render status, REAPER's computed output target(s), `processing`,
        `delay_seconds` waited, the file's `peak_dbfs`, `silent` (no signal at all), and
        `sound_starts_s` (seconds into the file, None if never); a `note` says what to try.
render_regiontool Render the master mix over the region get_regions numbers region_index, from its start to its end. render_project's other options and its response apply, plus `Filesoutside textdestructive (declared)
Render the master mix over the region get_regions numbers region_index, from its start to its end. render_project's other options and its response apply, plus `region` {index, name, start, end}.
run_actiontool Run a REAPER action by command ID.Filesoutside textdestructive (declared)
Run a REAPER action by command ID.

    Args:
        action_id: REAPER action/command ID number.
run_action_by_nametool Run a REAPER action by its named command id.Filesoutside textdestructive (declared)
Run a REAPER action by its named command id.

    Named commands (e.g. ReaScripts "_RS12345" or SWS "_SWS_...") are resolved
    to a numeric command id via NamedCommandLookup before firing. A purely numeric
    string (e.g. "40297") is treated as a built-in command id and run directly;
    prefer run_action(action_id) for built-ins.

    Args:
        action_name: Named command id (e.g. "_RS12345") or a numeric command id string.

    Returns:
        If the named command cannot be resolved,
        returns {"ok": False, "error": ...} without firing any action.
save_fx_presettool Not supported: REAPER's API cannot save a named FX preset, so this tool always returnsFilesoutside textdestructive (declared)
Not supported: REAPER's API cannot save a named FX preset, so this tool always returns
    an error. Use get_track_fx_chunk to capture the current FX state.
save_projecttool Save the current REAPER project.Filesoutside textdestructive (declared)
Save the current REAPER project.
scale_midi_note_velocitiestool Scale MIDI note velocities: multiply, set to a fixed value, or compress toward a pivot.Filesoutside text
Scale MIDI note velocities: multiply, set to a fixed value, or compress toward a pivot.
    Results clamp to 1-127.

    Args:
        mode: "multiply" (velocity * ratio), "set" (velocity becomes `value`), or "compress"
            (pivot + (velocity - pivot) * ratio).
        ratio: Multiply factor (>= 0, no upper cap), or compress amount (0.0-1.0, where 0
            collapses every note onto the pivot and 1.0 changes nothing).
        value: Target velocity for "set" mode (1-127).
        pivot: What compress pulls toward (1-127), or -1 for the rounded mean of the matched
            notes' velocities (reported as pivot_used).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, pivot_used, notes:[...]}.
select_all_itemstool Select all media items.Filesoutside text
Select all media items.
select_all_trackstool Select all tracks.Filesoutside text
Select all tracks.
select_comp_lanetool Make a fixed lane play exclusively on a track (REAPER 7 lane-based comping).Filesoutside text
Make a fixed lane play exclusively on a track (REAPER 7 lane-based comping).

    The track must be in fixed-lane mode (right-click track -> Track lanes). Returns a clear
    error if it is not, or if the lane index is out of range.

    Args:
        lane_index: Fixed lane index to play exclusively (0-based).
select_midi_notestool Select the MIDI notes matching the filter, as if clicked in REAPER's MIDI editor.Filesoutside text
Select the MIDI notes matching the filter, as if clicked in REAPER's MIDI editor.

    Args:
        selected: False deselects the matching notes instead; with no filter, clears the selection.
        exclusive: When selecting, deselect every note that does not match.

    `notes_changed` counts notes whose selection flipped.
select_tracktool Select a track.Filesoutside text
Select a track.

    Args:
        exclusive: If True, deselect other tracks first.
set_active_taketool Set the active take of a media item (which take plays).Filesoutside text
Set the active take of a media item (which take plays).

    Args:
set_cursor_positiontool Set the edit cursor position.Filesoutside text
Set the edit cursor position.

    Args:
        position: Position in seconds from project start.
set_eq_bandtool Set a ReaEQ band parameter.Filesoutside text
Set a ReaEQ band parameter.

    Pass real values by default: frequency in Hz (paramtype 0), gain in dB
    (paramtype 1), or Q (paramtype 2). Gain is converted to ReaEQ's normalized
    curve internally; freq and Q are sent raw.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: -1=master gain, 0=hipass, 1=loshelf, 2=band, 3=notch,
                  4=hishelf, 5=lopass, 6=bandpass, 7=parallel bandpass.
        bandidx: Band index within that type (0=first). Ignored for master gain.
        paramtype: 0=frequency (Hz), 1=gain (dB), 2=Q. Ignored for master gain.
        value: The value, in real units unless is_normalized=True.
        is_normalized: If True, value is a raw 0-1 normalized value written directly.
set_eq_band_enabledtool Enable or disable a ReaEQ band.Filesoutside text
Enable or disable a ReaEQ band.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: Band type (0=hipass, 1=loshelf, 2=band, 3=notch, 4=hishelf, 5=lopass).
        bandidx: Band index within that type (0=first).
        enabled: True to enable, False to disable.
set_fx_presettool Set the preset of an FX.Filesoutside text
Set the preset of an FX.

    Args:
        preset_name: Preset name.
set_item_fade_intool Set the fade-in length of a media item.Filesoutside text
Set the fade-in length of a media item.

    Args:
        length: Fade-in length in seconds.
set_item_fade_outtool Set the fade-out length of a media item.Filesoutside text
Set the fade-out length of a media item.

    Args:
        length: Fade-out length in seconds.
set_item_lengthtool Set the length of a media item.Filesoutside text
Set the length of a media item.

    Args:
        length: New length in seconds.
set_item_mutetool Mute or unmute a media item.Filesoutside text
Mute or unmute a media item.

    Args:
        mute: True to mute, False to unmute.
set_item_positiontool Set the position of a media item.Filesoutside text
Set the position of a media item.

    Args:
        position: New position in seconds.
set_item_volumetool Set the volume of a media item.Filesoutside text
Set the volume of a media item.

    Args:
        volume_db: Volume in dB.
set_midi_notetool Edit one existing MIDI note in place: pitch, start, length and/or channel. Only theFilesoutside text
Edit one existing MIDI note in place: pitch, start, length and/or channel. Only the
    fields you pass change, and at least one is required. (Velocity: set_midi_note_velocity.)

    note_index is REAPER's PPQ-sorted index from get_midi_notes / get_selected_midi_notes and
    is unstable - re-read after the edit, since the returned list reflects the new order.

    Args:
        pitch: New pitch (0-127).
        start_beat: New start in beats from item start; length is preserved. A start before
            the item start clamps there and is counted in out_of_bounds, not clamped.
        length_beats: New length in beats (> 0), resized from the current start.
        channel: New MIDI channel (0-15).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}, or {ok:false, error}
        for a bad index, an empty edit, or an out-of-range value (nothing is written).
set_midi_note_velocitytool Set the velocity of a MIDI note.Filesoutside text
Set the velocity of a MIDI note.

    Args:
        velocity: New velocity (1-127).
set_play_ratetool Set the project playback rate, 0.25 to 4 (1.0 is normal speed).Filesoutside text
Set the project playback rate, 0.25 to 4 (1.0 is normal speed).
set_send_dest_channelstool Set the destination channels for a send (used for sidechain routing).Filesoutside text
Set the destination channels for a send (used for sidechain routing).

    Args:
        track_index: Source track index (0-based).
        dest_chan: Destination channel pair (0=1-2 main, 2=3-4 sidechain, 4=5-6, etc.).
                   For sidechain compression, use 2 to route to channels 3-4.
set_send_source_channelstool Set the source channels for a send.Filesoutside text
Set the source channels for a send.

    Args:
        track_index: Source track index (0-based).
        src_chan: Source channel (-1=none, 0=stereo 1-2, 1024+n=mono from channel n).
set_send_volumetool Set the volume of a track send.Filesoutside text
Set the volume of a track send.

    Args:
        track_index: Source track index (0-based).
        volume_db: Send volume in dB.
set_take_nametool Rename a take, the active one when take_index is left out. An item shows its active take's name.Filesoutside text
Rename a take, the active one when take_index is left out. An item shows its active take's name.

    Returns:
        take_index, name.
set_tempotool Set the project tempo.Filesoutside text
Set the project tempo.

    Args:
        bpm: Tempo in beats per minute.
set_time_selectiontool Set the time selection.Filesoutside text
Set the time selection.

    Args:
        start: Start time in seconds.
        end: End time in seconds.
set_time_signaturetool Set the project time signature.Filesoutside text
Set the project time signature.

    Args:
        numerator: Beats per measure (e.g., 4 for 4/4).
        denominator: Beat unit (e.g., 4 for quarter note).
set_track_as_foldertool Set a track as a folder parent or child.Filesoutside text
Set a track as a folder parent or child.

    Args:
        folder_depth: 0=normal, 1=folder parent, -1=end of folder.
set_track_automation_modetool Set the automation mode for a track.Filesoutside text
Set the automation mode for a track.

    Args:
        mode: 0=trim/read, 1=read, 2=touch, 3=write, 4=latch.
set_track_colortool Set the color of a track.Filesoutside text
Set the color of a track.

    Args:
        r: Red component (0-255).
        g: Green component (0-255).
        b: Blue component (0-255).
set_track_displaytool Show or hide tracks in the arrange view and the mixer, and set track height. Settings left out stay as they are.Filesoutside text
Show or hide tracks in the arrange view and the mixer, and set track height. Settings left out stay as they are.

    Args:
        height: Pixels; 0 returns to REAPER's default. REAPER draws no track below its minimum height.

    Returns:
        tracks: [{index, hidden_in}], hidden_in only for a hidden track.
set_track_inputtool Set the record input for a track.Filesoutside text
Set the record input for a track.

    Args:
        input_index: Input index (-1=no input, 0+=hardware inputs, 4096+=virtual MIDI).
set_track_master_sendtool Enable or disable the master/parent send on a track.Filesoutside text
Enable or disable the master/parent send on a track.

    When enabled, the track's audio routes to its parent folder track (or the
    master if it has no parent). Disable it when a track should only output
    through its sends (e.g., routed exclusively to a bus).

    Args:
        enabled: True to enable, False to disable.
set_track_monitortool Set the monitor mode for a track.Filesoutside text
Set the monitor mode for a track.

    Args:
        monitor: 0=off, 1=normal, 2=not when playing.
set_track_mutetool Set the mute state of a track.Filesoutside text
Set the mute state of a track.

    Args:
        mute: True to mute, False to unmute.
set_track_nametool Set the name of a track.Filesoutside text
Set the name of a track.

    Args:
        name: New name for the track.
set_track_pantool Set the pan position of a track.Filesoutside text
Set the pan position of a track.

    Args:
        pan: Pan position from -1.0 (full left) to 1.0 (full right). 0 = center.
set_track_phasetool Set the phase inversion of a track.Filesoutside text
Set the phase inversion of a track.

    Args:
        invert: True to invert phase, False for normal.
set_track_solotool Set the solo state of a track.Filesoutside text
Set the solo state of a track.

    Args:
        solo: True to solo, False to unsolo.
set_track_volumetool Set the volume of a track in decibels.Filesoutside text
Set the volume of a track in decibels.

    Args:
        volume_db: Volume in dB (0 = unity gain, -inf to +12 typical range).
set_track_widthtool Set the stereo width of a track.Filesoutside text
Set the stereo width of a track.

    Args:
        width: Width value (0=mono, 1=stereo, 2=200% width).
setup_sidechain_compressiontool Complete sidechain compression setup: creates send and configures compressor.Filesoutside text
Complete sidechain compression setup: creates send and configures compressor.

    This is the all-in-one function for setting up sidechain compression.
    It creates a send from the trigger track to the target track's sidechain input
    and configures ReaComp to listen to that sidechain.

    Args:
        trigger_track: Track that triggers compression (e.g., kick drum = track 0).
        target_track: Track to be compressed (e.g., bass = track 1).
        compressor_fx_index: Index of ReaComp in target track's FX chain.
        send_volume_db: Sidechain send volume in dB (default 0dB).

    Returns:
        Object with complete setup info.

    Example:
        For kick-triggered bass compression where:
        - Drums are on track 0
        - Bass is on track 1 with ReaComp at FX index 2
        Call: setup_sidechain_compression(0, 1, 2)
setup_sidechain_sendtool Create a sidechain send from one track to another track's FX sidechain input.Filesoutside text
Create a sidechain send from one track to another track's FX sidechain input.

    This creates a send routed to channels 3-4 of the destination track,
    which is the standard sidechain input for compressors like ReaComp.

    Args:
        src_track: Source/trigger track index (e.g., kick drum).
        dest_track: Destination track index (e.g., bass with compressor).
        volume_db: Send volume in dB (default 0dB = unity).

    Returns:
        Object with send_index and routing info.
snap_midi_notes_to_scaletool Snap off-key MIDI notes onto a scale (fix a wrong note, force a part into a key).Filesoutside text
Snap off-key MIDI notes onto a scale (fix a wrong note, force a part into a key).

    Notes already in the scale are left alone; each off-scale note moves to the nearest
    in-scale pitch, and under `nearest` a tie resolves toward the middle of the selection.
    A note with no in-scale pitch left inside 0-127 stays put and is counted in `skipped`.

    Args:
        root: Root pitch class, 0-11 (0=C, 1=C#, 2=D ... 11=B).
        mode: Scale name: major, minor, harmonic_minor, melodic_minor, dorian, phrygian,
            lydian, mixolydian, locrian, major_pentatonic, minor_pentatonic, blues,
            whole_tone, chromatic (aliases: ionian, aeolian, natural_minor). Or a custom
            list of semitone intervals from the root, each 0-11 (e.g. [0,2,4,7,9]).
        direction: "nearest" (closest scale tone), "up" or "down" (that way only, skipping
            a note rather than falling back to the other direction).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}; `notes` is the
        post-transform list, with indices re-synced after the sort.
split_itemtool Split a media item at a position.Filesoutside text
Split a media item at a position.

    Args:
        position: Split position in seconds (absolute project time).

    Returns:
        Object with info about both resulting items.
stoptool Stop playback in REAPER.Filesoutside text
Stop playback in REAPER.
stretch_midi_notestool Stretch or compress MIDI timing (half-time, double-time, or any ratio).Filesoutside text
Stretch or compress MIDI timing (half-time, double-time, or any ratio).

    Each targeted note scales as a rigid unit about one fixed pivot: its distance from the
    pivot and its own length both multiply by `factor`, so the rhythm is preserved and only
    the speed changes. Notes that land past the item end are kept as-is; one pushed before
    the item start begins at the item start but keeps its scaled end, so it comes out
    shorter. Both are counted in `out_of_bounds` (`clamped` stays 0 here).

    Args:
        factor: Time scale ratio, must be > 0. 2.0 = twice as long (half-time), 0.5 = half
            as long (double-time).
        pivot_beat: The fixed point, in beats from the item start; may be negative. None =
            the earliest targeted onset.
strum_midi_notestool Strum chords: stagger the onsets of simultaneous notes so each chord rolls out.Filesoutside text
Strum chords: stagger the onsets of simultaneous notes so each chord rolls out.

    Only onsets move; note lengths are preserved.

    Args:
        spread_beats: Total first-to-last onset span within each chord (>= 0; 0 = no-op).
        direction: "up" strikes the lowest note of a chord first, "down" the highest.
        chord_window_beats: Onset tolerance for grouping notes into one chord (0 = exact
            same onset).
take_fx_add_by_nametool Add an FX plugin to a take by name.Filesoutside text
Add an FX plugin to a take by name.

    Args:
        fx_name: Name of the FX plugin to add (e.g., "ReaEQ", "ReaComp"). Use the exact
                 plugin name as it appears in REAPER's FX browser.

    Returns:
        Object with 'ret' field containing the new FX index (or -1 if it could not be added).
take_fx_deletetool Remove an FX plugin from a take.Filesoutside textdestructive (declared)
Remove an FX plugin from a take.

    Args:
take_fx_get_counttool Get the number of FX plugins on a take.Filesoutside textread-only (declared)
Get the number of FX plugins on a take.

    Returns:
        Object with 'ret' field containing the FX count.
take_fx_get_enabledtool Get the enabled (not bypassed) state of an FX plugin on a take.Filesoutside textread-only (declared)
Get the enabled (not bypassed) state of an FX plugin on a take.

    Args:

    Returns:
        Object with 'ret' field (boolean).
take_fx_get_listtool Get a list of all FX plugins on a take.Filesoutside textread-only (declared)
Get a list of all FX plugins on a take.

    Returns:
        Object with 'fx' array, each entry having index, name, and enabled state.
take_fx_get_nametool Get the name of an FX plugin on a take.Filesoutside textread-only (declared)
Get the name of an FX plugin on a take.

    Args:
take_fx_get_num_paramstool Get the number of parameters for an FX plugin on a take.Filesoutside textread-only (declared)
Get the number of parameters for an FX plugin on a take.

    Args:
take_fx_get_paramtool Get a parameter value on a take's FX plugin.Filesoutside textread-only (declared)
Get a parameter value on a take's FX plugin.

    Args:

    Returns:
        Object with 'value', 'min', and 'max' for the parameter.
take_fx_get_param_nametool Get the name of a parameter on a take's FX plugin.Filesoutside textread-only (declared)
Get the name of a parameter on a take's FX plugin.

    Args:
take_fx_set_enabledtool Enable or bypass an FX plugin on a take.Filesoutside text
Enable or bypass an FX plugin on a take.

    Args:
        enabled: True to enable, False to bypass.
take_fx_set_paramtool Set a parameter value on a take's FX plugin.Filesoutside text
Set a parameter value on a take's FX plugin.

    Args:
        value: New value (typically normalized 0-1; check min/max via take_fx_get_param).
toggle_repeattool Toggle repeat/loop mode.Filesoutside text
Toggle repeat/loop mode.

    Returns:
        Object with new repeat state.
track_fx_add_by_nametool Add an FX plugin to a track by name.Filesoutside text
Add an FX plugin to a track by name.

    Args:
        fx_name: Name of the FX plugin to add (e.g., "ReaEQ", "ReaComp", "ReaLimit").
                 Use the exact plugin name as it appears in REAPER's FX browser.
        position: Optional insertion position (0-based) in the FX chain.
                  Default -1 adds at the end; 0 inserts at the beginning.

    Returns:
        Info about the added FX including its index.
track_fx_deletetool Remove an FX plugin from a track.Filesoutside textdestructive (declared)
Remove an FX plugin from a track.
track_fx_get_counttool Get the number of FX plugins on a track.Filesoutside textread-only (declared)
Get the number of FX plugins on a track.

    Returns:
        Object with 'ret' field containing count.
track_fx_get_enabledtool Get the enabled state of an FX plugin.Filesoutside textread-only (declared)
Get the enabled state of an FX plugin.

    Returns:
        Object with 'ret' field (boolean).
track_fx_get_listtool Get list of all FX plugins on a track.Filesoutside textread-only (declared)
Get list of all FX plugins on a track.

    Returns:
        Object with 'fx' array, one entry per FX with index, name, enabled and offline,
        plus fx_count. 'enabled' is False when the FX is bypassed. Normal FX chain only,
        not input/record FX or master monitoring FX.
track_fx_get_nametool Get the name of an FX plugin.Filesoutside textread-only (declared)
Get the name of an FX plugin.
track_fx_get_num_paramstool Get the number of parameters for an FX plugin.Filesoutside textread-only (declared)
Get the number of parameters for an FX plugin.
track_fx_get_paramtool Get a specific parameter value of an FX plugin.Filesoutside textread-only (declared)
Get a specific parameter value of an FX plugin.

    Returns:
        Object with value, min, max for the parameter.
track_fx_get_param_nametool Get the name of an FX parameter.Filesoutside textread-only (declared)
Get the name of an FX parameter.
track_fx_movetool Move an FX plugin to a new position within the same track's FX chain.Filesoutside text
Move an FX plugin to a new position within the same track's FX chain.

    Args:
        fx_index: Current FX index (0-based) in the FX chain.
        new_position: Target position (0-based). 0 = beginning of the chain.
track_fx_set_enabledtool Enable or disable an FX plugin.Filesoutside text
Enable or disable an FX plugin.

    Args:
        enabled: True to enable, False to bypass.
track_fx_set_paramtool Set a parameter value on an FX plugin.Filesoutside text
Set a parameter value on an FX plugin.

    Args:
        value: New value for the parameter (typically normalized 0-1, check min/max).
transpose_midi_notestool Transpose MIDI notes by a number of semitones (12 = an octave).Filesoutside text
Transpose MIDI notes by a number of semitones (12 = an octave).

    A note that would land outside pitch 0-127 keeps its original pitch and is counted in
    `skipped` instead.

    Args:
        semitones: Signed shift; positive is up, negative is down. 0 = no-op.

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}, where `notes` is
        the full note list after the transform, re-indexed.
undotool Undo the last action in REAPER.Filesoutside textdestructive (declared)
Undo the last action in REAPER.

    Returns:
        Object with undo description.
unselect_all_itemstool Unselect all media items.Filesoutside text
Unselect all media items.
unselect_all_trackstool Unselect all tracks.Filesoutside text
Unselect all tracks.
zoom_to_projecttool Zoom the arrange view to show the entire project.Filesoutside text
Zoom the arrange view to show the entire project.
zoom_to_selectiontool Zoom the arrange view to the time selection.Filesoutside text
Zoom the arrange view to the time selection.

Text the model reads (188)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

get_track_count tool
Get the total number of tracks in the current REAPER project (excluding master track).
get_track tool
Get information about a track.

    Returns:
        Object with 'info': guid, name, volume, volume_db, pan, muted, soloed,
        has_midi, has_audio, fx_names, role, and hidden_in (["arrange"], ["mixer"]
        or both) only for a hidden track.
get_all_tracks tool
Get information about all tracks in the project, in get_track's shape plus index.
get_master_track tool
Get information about the master track.
insert_track tool
Insert a new track at the specified index.

    Args:
        index: Position to insert track (0-based). If not specified, adds at end.
        name: Optional name for the new track.

    Returns:
        Info about the created track.
create_click_track tool
Add a click track at the end of the track list. It holds REAPER's click source, which follows the tempo map and time signature changes and accents each downbeat.

    Args:
        start: Start in seconds.
        end: End in seconds (default: the end of the project).
        name: Track name.

    Returns:
        track_index, item_index, start, end.
delete_track tool
Delete a track.

    Args:
        track_index: Track index to delete (0-based). Cannot delete master track (-1).
set_track_name tool
Set the name of a track.

    Args:
        name: New name for the track.
set_track_volume tool
Set the volume of a track in decibels.

    Args:
        volume_db: Volume in dB (0 = unity gain, -inf to +12 typical range).
set_track_pan tool
Set the pan position of a track.

    Args:
        pan: Pan position from -1.0 (full left) to 1.0 (full right). 0 = center.
set_track_mute tool
Set the mute state of a track.

    Args:
        mute: True to mute, False to unmute.
set_track_solo tool
Set the solo state of a track.

    Args:
        solo: True to solo, False to unsolo.
move_tracks tool
Move tracks, in their current order, to just above before_index. A folder moves with its children.

    Args:
        before_index: Counted before the move; the track count moves them to the end.
        into_folder: Make them children of the track above the destination.

    Returns:
        tracks: [{from, to}], each listed track's index before and after.
set_track_display tool
Show or hide tracks in the arrange view and the mixer, and set track height. Settings left out stay as they are.

    Args:
        height: Pixels; 0 returns to REAPER's default. REAPER draws no track below its minimum height.

    Returns:
        tracks: [{index, hidden_in}], hidden_in only for a hidden track.
track_fx_get_count tool
Get the number of FX plugins on a track.

    Returns:
        Object with 'ret' field containing count.
track_fx_get_list tool
Get list of all FX plugins on a track.

    Returns:
        Object with 'fx' array, one entry per FX with index, name, enabled and offline,
        plus fx_count. 'enabled' is False when the FX is bypassed. Normal FX chain only,
        not input/record FX or master monitoring FX.
track_fx_add_by_name tool
Add an FX plugin to a track by name.

    Args:
        fx_name: Name of the FX plugin to add (e.g., "ReaEQ", "ReaComp", "ReaLimit").
                 Use the exact plugin name as it appears in REAPER's FX browser.
        position: Optional insertion position (0-based) in the FX chain.
                  Default -1 adds at the end; 0 inserts at the beginning.

    Returns:
        Info about the added FX including its index.
track_fx_move tool
Move an FX plugin to a new position within the same track's FX chain.

    Args:
        fx_index: Current FX index (0-based) in the FX chain.
        new_position: Target position (0-based). 0 = beginning of the chain.
track_fx_delete tool
Remove an FX plugin from a track.
track_fx_get_name tool
Get the name of an FX plugin.
track_fx_get_enabled tool
Get the enabled state of an FX plugin.

    Returns:
        Object with 'ret' field (boolean).
track_fx_set_enabled tool
Enable or disable an FX plugin.

    Args:
        enabled: True to enable, False to bypass.
track_fx_get_num_params tool
Get the number of parameters for an FX plugin.
track_fx_get_param_name tool
Get the name of an FX parameter.
track_fx_get_param tool
Get a specific parameter value of an FX plugin.

    Returns:
        Object with value, min, max for the parameter.
track_fx_set_param tool
Set a parameter value on an FX plugin.

    Args:
        value: New value for the parameter (typically normalized 0-1, check min/max).
take_fx_get_count tool
Get the number of FX plugins on a take.

    Returns:
        Object with 'ret' field containing the FX count.
take_fx_get_list tool
Get a list of all FX plugins on a take.

    Returns:
        Object with 'fx' array, each entry having index, name, and enabled state.
take_fx_add_by_name tool
Add an FX plugin to a take by name.

    Args:
        fx_name: Name of the FX plugin to add (e.g., "ReaEQ", "ReaComp"). Use the exact
                 plugin name as it appears in REAPER's FX browser.

    Returns:
        Object with 'ret' field containing the new FX index (or -1 if it could not be added).
take_fx_delete tool
Remove an FX plugin from a take.

    Args:
take_fx_get_name tool
Get the name of an FX plugin on a take.

    Args:
take_fx_get_enabled tool
Get the enabled (not bypassed) state of an FX plugin on a take.

    Args:

    Returns:
        Object with 'ret' field (boolean).
take_fx_set_enabled tool
Enable or bypass an FX plugin on a take.

    Args:
        enabled: True to enable, False to bypass.
take_fx_get_num_params tool
Get the number of parameters for an FX plugin on a take.

    Args:
take_fx_get_param_name tool
Get the name of a parameter on a take's FX plugin.

    Args:
take_fx_get_param tool
Get a parameter value on a take's FX plugin.

    Args:

    Returns:
        Object with 'value', 'min', and 'max' for the parameter.
take_fx_set_param tool
Set a parameter value on a take's FX plugin.

    Args:
        value: New value (typically normalized 0-1; check min/max via take_fx_get_param).
get_takes tool
List all takes of a media item.

    Returns:
        Object with 'takes' array (each entry: index, name, is_active) and 'ret' = take count.
get_active_take tool
Get the index of the active take of a media item.

    Returns:
        Object with 'ret' = active take index (-1 if the item has no active take).
set_active_take tool
Set the active take of a media item (which take plays).

    Args:
set_take_name tool
Rename a take, the active one when take_index is left out. An item shows its active take's name.

    Returns:
        take_index, name.
explode_takes tool
Explode all takes of a media item in place (each take becomes its own overlapping item).
crop_to_active_take tool
Crop a media item to its active take, discarding all other takes.
delete_take tool
Delete a specific take from a media item.

    Args:
        take_index: Take index to delete (0-based). The take is activated first, then removed.
select_comp_lane tool
Make a fixed lane play exclusively on a track (REAPER 7 lane-based comping).

    The track must be in fixed-lane mode (right-click track -> Track lanes). Returns a clear
    error if it is not, or if the lane index is out of range.

    Args:
        lane_index: Fixed lane index to play exclusively (0-based).
create_send tool
Create a send from one track to another.

    Args:
        src_track: Source track index (0-based).
        dest_track: Destination track index (0-based).

    Returns:
        Object with send_index.
delete_send tool
Delete a send from a track.

    Args:
        track_index: Source track index (0-based).
        send_index: Send index (0-based) to delete.
set_send_volume tool
Set the volume of a track send.

    Args:
        track_index: Source track index (0-based).
        volume_db: Send volume in dB.
get_track_num_sends tool
Get the number of sends from a track.
set_send_dest_channels tool
Set the destination channels for a send (used for sidechain routing).

    Args:
        track_index: Source track index (0-based).
        dest_chan: Destination channel pair (0=1-2 main, 2=3-4 sidechain, 4=5-6, etc.).
                   For sidechain compression, use 2 to route to channels 3-4.
set_send_source_channels tool
Set the source channels for a send.

    Args:
        track_index: Source track index (0-based).
        src_chan: Source channel (-1=none, 0=stereo 1-2, 1024+n=mono from channel n).
setup_sidechain_send tool
Create a sidechain send from one track to another track's FX sidechain input.

    This creates a send routed to channels 3-4 of the destination track,
    which is the standard sidechain input for compressors like ReaComp.

    Args:
        src_track: Source/trigger track index (e.g., kick drum).
        dest_track: Destination track index (e.g., bass with compressor).
        volume_db: Send volume in dB (default 0dB = unity).

    Returns:
        Object with send_index and routing info.
configure_reacomp_sidechain tool
Configure ReaComp to use sidechain input for detection.

    Args:
        track_index: Track index (0-based) where ReaComp is located.
        fx_index: FX index (0-based) of ReaComp in the FX chain.
        use_sidechain: True to use auxiliary input (channels 3-4), False for main input.

    Returns:
        Object with configuration status.
setup_sidechain_compression tool
Complete sidechain compression setup: creates send and configures compressor.

    This is the all-in-one function for setting up sidechain compression.
    It creates a send from the trigger track to the target track's sidechain input
    and configures ReaComp to listen to that sidechain.

    Args:
        trigger_track: Track that triggers compression (e.g., kick drum = track 0).
        target_track: Track to be compressed (e.g., bass = track 1).
        compressor_fx_index: Index of ReaComp in target track's FX chain.
        send_volume_db: Sidechain send volume in dB (default 0dB).

    Returns:
        Object with complete setup info.

    Example:
        For kick-triggered bass compression where:
        - Drums are on track 0
        - Bass is on track 1 with ReaComp at FX index 2
        Call: setup_sidechain_compression(0, 1, 2)
play tool
Start playback in REAPER.
stop tool
Stop playback in REAPER.
get_play_state tool
Get the current playback state.

    Returns:
        Object with play state info.
get_cursor_position tool
Get the edit cursor position.

    Returns:
        Object with cursor position in seconds.
set_cursor_position tool
Set the edit cursor position.

    Args:
        position: Position in seconds from project start.
get_play_rate tool
Get the project playback rate as `rate` (1.0 is normal speed).
set_play_rate tool
Set the project playback rate, 0.25 to 4 (1.0 is normal speed).
save_project tool
Save the current REAPER project.
get_project_path tool
Get the project path.
get_project_name tool
Get the project name.
get_tempo tool
Get the tempo at project start as `ret`, and every tempo marker as `tempo_markers`.
get_time_signature tool
Get the project time signature.
add_mastering_chain tool
Add a standard mastering chain to the master track.

    Adds the following plugins in order:
    1. ReaEQ (corrective EQ)
    2. ReaComp (glue compression)
    3. ReaEQ (tonal shaping)
    4. ReaLimit (brickwall limiter)

    Returns:
        Object with list of added FX indices.
add_parallel_compression tool
Set up New York style parallel compression for a track.

    Creates a new bus track with heavy compression, fed by a send from the source track.

    Args:
        track_index: Source track index (0-based).
        blend_db: Send level in dB for the compressed signal (default -6dB).

    Returns:
        Object with bus_track_index, send_index, and compressor_fx_index.
create_bus tool
Create a submix/stem bus and route specified tracks to it.

    Args:
        name: Name for the bus track.
        source_track_indices: List of track indices to route to this bus.

    Returns:
        Object with bus_track_index and routing info.
add_eq tool
Add ReaEQ to a track.

    Returns:
        Object with fx_index.
add_compressor tool
Add ReaComp to a track.

    Returns:
        Object with fx_index.
add_limiter tool
Add ReaLimit (brickwall limiter) to a track.

    Returns:
        Object with fx_index.
create_midi_item tool
Create an empty MIDI item on a track.

    Args:
        position: Start position in seconds.
        length: Length in seconds.

    Returns:
        Object with item info including the new item_index.
get_midi_item tool
Get information about a MIDI item.

    Returns:
        Object with item info including position, length, note count.
add_midi_note tool
Add a MIDI note to an item using musical timing (beats).

    Args:
        pitch: MIDI note number (0-127, 60 = middle C).
        velocity: Note velocity (1-127).
        start_beat: Start position in beats from the item start (0 = first beat).
        length_beats: Note length in beats (0.25 = sixteenth, 0.5 = eighth, 1.0 = quarter).

    Example:
        Four-on-the-floor kick: add_midi_note(0, 0, 36, 110, start_beat=0, length_beats=0.25)
        then start_beat=1, 2, 3.
add_midi_notes_batch tool
Add multiple MIDI notes to an item in one call, using musical timing (beats).

    Args:
        notes: List of note dicts with keys: pitch, velocity, start_beat, length_beats,
               channel (optional).

    Returns:
        Object with count of notes added.
get_midi_notes tool
Get all MIDI notes from an item.

    Returns:
        Object with list of notes.
delete_midi_note tool
Delete a MIDI note from an item.
clear_midi_item tool
Delete all MIDI notes from an item.

    Returns:
        Object with count of notes deleted.
set_midi_note_velocity tool
Set the velocity of a MIDI note.

    Args:
        velocity: New velocity (1-127).
transpose_midi_notes tool
Transpose MIDI notes by a number of semitones (12 = an octave).

    A note that would land outside pitch 0-127 keeps its original pitch and is counted in
    `skipped` instead.

    Args:
        semitones: Signed shift; positive is up, negative is down. 0 = no-op.

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}, where `notes` is
        the full note list after the transform, re-indexed.
nudge_midi_notes tool
Shift MIDI notes in time by a number of beats (+ = later, - = earlier).

    Start and end move together, so note lengths are preserved. A note pushed before the
    item start clamps to it and one pushed past the item end is left there; both count in
    `out_of_bounds`, not `clamped`.

    Args:
        amount_beats: Signed beat shift (0.25 = a 16th later, -1.0 = a beat earlier). 0 = no-op.
get_selected_midi_notes tool
Read the MIDI notes currently SELECTED in REAPER's editor for the active take.

    The escape hatch for "operate on what I've selected": select notes by hand in REAPER,
    call this to see which they are, then translate that into an explicit value filter
    (pitch range / beat window / channel) for the transform tools. Read-only, no undo.

    Returns:
        {ok, notes:[...], ret} - the selected notes, same shape as get_midi_notes (each note
        carries item-relative start_beat/end_beat). `index` is REAPER's absolute PPQ-sorted
        note index, so a partial selection is non-contiguous. Empty selection -> notes:[].
select_midi_notes tool
Select the MIDI notes matching the filter, as if clicked in REAPER's MIDI editor.

    Args:
        selected: False deselects the matching notes instead; with no filter, clears the selection.
        exclusive: When selecting, deselect every note that does not match.

    `notes_changed` counts notes whose selection flipped.
set_midi_note tool
Edit one existing MIDI note in place: pitch, start, length and/or channel. Only the
    fields you pass change, and at least one is required. (Velocity: set_midi_note_velocity.)

    note_index is REAPER's PPQ-sorted index from get_midi_notes / get_selected_midi_notes and
    is unstable - re-read after the edit, since the returned list reflects the new order.

    Args:
        pitch: New pitch (0-127).
        start_beat: New start in beats from item start; length is preserved. A start before
            the item start clamps there and is counted in out_of_bounds, not clamped.
        length_beats: New length in beats (> 0), resized from the current start.
        channel: New MIDI channel (0-15).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}, or {ok:false, error}
        for a bad index, an empty edit, or an out-of-range value (nothing is written).
ramp_midi_note_velocities tool
Apply a linear velocity ramp (crescendo / decrescendo) across MIDI notes.

    Velocities interpolate by onset: the earliest note in the filtered set gets
    start_velocity, the latest gets end_velocity, everything between is linear. Notes
    sharing an onset (a chord) get the same velocity. Results clamp to 1-127.

    Args:
        start_velocity: Velocity at the earliest onset (1-127; out of range clamps, not an error).
        end_velocity: Velocity at the latest onset (1-127).
scale_midi_note_velocities tool
Scale MIDI note velocities: multiply, set to a fixed value, or compress toward a pivot.
    Results clamp to 1-127.

    Args:
        mode: "multiply" (velocity * ratio), "set" (velocity becomes `value`), or "compress"
            (pivot + (velocity - pivot) * ratio).
        ratio: Multiply factor (>= 0, no upper cap), or compress amount (0.0-1.0, where 0
            collapses every note onto the pivot and 1.0 changes nothing).
        value: Target velocity for "set" mode (1-127).
        pivot: What compress pulls toward (1-127), or -1 for the rounded mean of the matched
            notes' velocities (reported as pivot_used).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, pivot_used, notes:[...]}.
strum_midi_notes tool
Strum chords: stagger the onsets of simultaneous notes so each chord rolls out.

    Only onsets move; note lengths are preserved.

    Args:
        spread_beats: Total first-to-last onset span within each chord (>= 0; 0 = no-op).
        direction: "up" strikes the lowest note of a chord first, "down" the highest.
        chord_window_beats: Onset tolerance for grouping notes into one chord (0 = exact
            same onset).
snap_midi_notes_to_scale tool
Snap off-key MIDI notes onto a scale (fix a wrong note, force a part into a key).

    Notes already in the scale are left alone; each off-scale note moves to the nearest
    in-scale pitch, and under `nearest` a tie resolves toward the middle of the selection.
    A note with no in-scale pitch left inside 0-127 stays put and is counted in `skipped`.

    Args:
        root: Root pitch class, 0-11 (0=C, 1=C#, 2=D ... 11=B).
        mode: Scale name: major, minor, harmonic_minor, melodic_minor, dorian, phrygian,
            lydian, mixolydian, locrian, major_pentatonic, minor_pentatonic, blues,
            whole_tone, chromatic (aliases: ionian, aeolian, natural_minor). Or a custom
            list of semitone intervals from the root, each 0-11 (e.g. [0,2,4,7,9]).
        direction: "nearest" (closest scale tone), "up" or "down" (that way only, skipping
            a note rather than falling back to the other direction).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, notes:[...]}; `notes` is the
        post-transform list, with indices re-synced after the sort.
quantize_midi_notes tool
Quantize MIDI note onsets onto the grid (tighten sloppy timing, add swing).

    Onsets snap to the PROJECT bar/beat grid, not to an offset from the item's own start,
    and note lengths are preserved: start and end move together. Notes that land past the
    item end are kept, and one that would land before the item start is placed at it; both
    are counted in `out_of_bounds` (`clamped` stays 0 here).

    Args:
        grid: Grid spacing in beats: 0.25 = 1/16, 0.5 = 1/8, 1.0 = 1/4. Must be > 0.
        strength: 0.0-1.0. 1.0 snaps exactly onto the grid, 0.5 moves each note halfway
            there, 0.0 is a no-op.
        swing: 0.0-1.0. 0.0 = straight, 1.0 = full triplet feel (off-beats at 66.7%),
            scaling linearly between. Only the off-beat (odd) grid cells are delayed.
stretch_midi_notes tool
Stretch or compress MIDI timing (half-time, double-time, or any ratio).

    Each targeted note scales as a rigid unit about one fixed pivot: its distance from the
    pivot and its own length both multiply by `factor`, so the rhythm is preserved and only
    the speed changes. Notes that land past the item end are kept as-is; one pushed before
    the item start begins at the item start but keeps its scaled end, so it comes out
    shorter. Both are counted in `out_of_bounds` (`clamped` stays 0 here).

    Args:
        factor: Time scale ratio, must be > 0. 2.0 = twice as long (half-time), 0.5 = half
            as long (double-time).
        pivot_beat: The fixed point, in beats from the item start; may be negative. None =
            the earliest targeted onset.
legato_midi_notes tool
Close the gaps in a MIDI line (legato), or set every note to one length.

    Only note ends move; starts are never touched. "connect" extends each note's end to the
    next onset and never shortens anything; a gap wider than max_gap_beats is left as a rest
    and counted in gaps_preserved, and the last note is left alone. "fixed" instead sets every
    targeted note's length to length_beats. Notes whose new end passes the item end are kept
    and reported in out_of_bounds.

    Args:
        mode: "connect" (extend each end to the next onset) or "fixed" (set every length).
        voice: connect only. "chordal" extends to the next onset of any note, so a chord's
            notes move together; "per_pitch" extends to the next note of the SAME pitch and
            channel, keeping interleaved voices independent.
        max_gap_beats: connect only. Gaps wider than this are left as rests (>= 0).
        length_beats: fixed only. The length every targeted note is set to (> 0).

    Returns:
        {ok, notes_changed, clamped, skipped, out_of_bounds, gaps_preserved, notes:[...]}.
humanize_midi_notes tool
Humanize MIDI: nudge timing and velocity by small random amounts, reproducibly.

    Each note gets its own timing and velocity offset drawn from a bell curve. Note lengths
    are preserved (start and end move together) and pitches are never touched. The randomness
    is seeded, so the same take with the same seed and settings gives identical results every
    time. Velocities are clamped to 1-127 and counted in clamped; notes pushed past the item
    end are kept and reported in out_of_bounds.

    Unlike the other timing tools, a note pushed before the item start is placed at the
    item start and counted in out_of_bounds, not clamped; clamped here counts only the
    velocity clamp.

    Args:
        timing: Timing spread in beats (standard deviation); 0.02 is a subtle human feel,
            0.0 leaves timing alone.
        velocity: Velocity spread (standard deviation, in velocity units); 0.0 leaves
            velocity alone.
        seed: Any integer. The same seed, settings and take give the same result.
        max_sigma: Cap on how far one note may stray, in multiples of the spread.
remove_overlapping_midi_notes tool
Clean up overlapping MIDI notes (same pitch stacked on itself).

    Two notes conflict only if they share a pitch AND a channel AND overlap in time, so a
    chord is never a conflict and notes that merely touch are left alone. "trim" shortens the
    earlier note to stop where the next begins, losing nothing; "delete" drops one note of
    each overlapping pair, keeping the louder (ties go to the longer note).

    Either mode can remove notes: notes stacked on the exact same onset collapse to the
    loudest, since there is nothing to trim between them, and a trim left shorter than
    min_length_beats is removed rather than left as a click.

    Args:
        mode: "trim" (shorten the earlier note) or "delete" (drop the quieter note).
        min_length_beats: A trimmed note left shorter than this is removed instead. Default
            1/128 of a beat; 0 disables it.
        pitch_low, pitch_high: Notes outside the filter are invisible: never touched,
            and never counted as an overlap partner.

    Returns:
        {ok, mode, notes_changed, clamped, skipped, out_of_bounds, notes_removed, trimmed,
        deduped, deleted, notes:[...]} where notes_removed = deduped + deleted.
insert_audio_file tool
Insert an audio file onto a track.

    Args:
        file_path: Full path to the audio file.
        position: Position in seconds.

    Returns:
        Object with track_index, item_index of the created item, and position.
get_track_items tool
Get all media items on a track.

    Returns:
        Object with list of items.
get_item_info tool
Get information about a media item.

    Returns:
        Object with item properties (position, length, take info, etc.).
set_item_position tool
Set the position of a media item.

    Args:
        position: New position in seconds.
set_item_length tool
Set the length of a media item.

    Args:
        length: New length in seconds.
delete_item tool
Delete a media item.
duplicate_item tool
Duplicate a media item.

    Returns:
        Object with new item info.
split_item tool
Split a media item at a position.

    Args:
        position: Split position in seconds (absolute project time).

    Returns:
        Object with info about both resulting items.
set_item_mute tool
Mute or unmute a media item.

    Args:
        mute: True to mute, False to unmute.
set_item_volume tool
Set the volume of a media item.

    Args:
        volume_db: Volume in dB.
set_item_fade_in tool
Set the fade-in length of a media item.

    Args:
        length: Fade-in length in seconds.
set_item_fade_out tool
Set the fade-out length of a media item.

    Args:
        length: Fade-out length in seconds.
set_tempo tool
Set the project tempo.

    Args:
        bpm: Tempo in beats per minute.
set_time_signature tool
Set the project time signature.

    Args:
        numerator: Beats per measure (e.g., 4 for 4/4).
        denominator: Beat unit (e.g., 4 for quarter note).
create_project tool
Create a new REAPER project.

    Note: REAPER has no API to name a project that has never been saved, so this server
    has no way to name one either. The removed `name` parameter never took effect.
open_project tool
Open a REAPER project file.

    Args:
        path: Full path to the .rpp file.
render_project tool
Render the project's master mix to an audio file. Apart from the path, source and
    range, the project's own render settings apply: its format (a .wav extension selects
    WAV), and its normalization, limiter, fades, trim and pad, which the response lists in
    `processing` (empty when none applies).

    If the target file already exists, this returns an error unless overwrite=True
    (which deletes the existing file first), as REAPER's overwrite prompt would block.

    A plugin still loading samples can render silence, or sound that starts later than the
    music (`sound_starts_s`); delay_seconds waits before the render, like REAPER's "Delay
    render start" but without its prompt.

    Args:
        output_path: Full path for output file (extension determines format).
        start_time: Start time in seconds (None = project start).
        end_time: End time in seconds (None = project end).
        tail_seconds: Extra seconds to render at end for reverb tails.
        overwrite: True to replace an existing file at output_path.
        skip_postprocessing: True to render without the project's normalization, limiter,
            fades, trim and pad, for a file you will measure or compare.
        delay_seconds: Seconds to wait before rendering (None = the project's setting,
            0 = no wait).
        sound_threshold_db: Level (dBFS) the file must exceed to count as sound.

    Returns:
        Object with render status, REAPER's computed output target(s), `processing`,
        `delay_seconds` waited, the file's `peak_dbfs`, `silent` (no signal at all), and
        `sound_starts_s` (seconds into the file, None if never); a `note` says what to try.
find_silence tool
Find the quiet stretches in one item's audio, or in every audio item on a track: where no
    sample peaks above threshold_db (dBFS) for at least min_length_s seconds. It reads the take's
    source before item and take volume, fades and FX; take offset, play rate, reversed takes and
    looped items are mapped to project time, and each edge is measured to the sample. Gaps between
    items are not audio and are not reported. min_length_s is at least 0.05.

    Returns:
        silences: [{item_index, start, end, length, at_item_start, at_item_end, beyond_source}]
        in project seconds (beyond_source: the item runs past its source and plays nothing there);
        items_scanned; skipped: MIDI and empty items with a reason; scan_ms.
measure_loudness tool
Measure loudness as REAPER's loudness window does: integrated LUFS, short-term and
    momentary max, loudness range, sample peak, plus true peak.

    Target: the master (default), a track, or one item (its track's output over the item,
    other items muted). start_time/end_time limit it to a range. It runs a render dry run, so
    it writes no files, puts selections back and adds no undo step. Measuring the master marks
    the project as modified, even though nothing in it changes.

    Returns:
        integrated_lufs, short_term_max_lufs, momentary_max_lufs, loudness_range_lu,
        sample_peak_dbfs, true_peak_dbtp, samples_over_0dbfs, duration; a note when a
        figure is approximate or unavailable.
measure_spectrum tool
Measure tonal balance and stereo image: octave-band levels (31.5 Hz to 16 kHz),
    spectral centroid, tilt in dB per octave, stereo correlation overall and below 150 Hz,
    side-to-mid level and left/right balance.

    Same targets and range as measure_loudness. Levels are dBFS with a full-scale sine at 0,
    as in REAPER. Needs the TwelveTake MCP Analyzer, which --install-bridge installs.
render_region tool
Render the master mix over the region get_regions numbers region_index, from its start to its end. render_project's other options and its response apply, plus `region` {index, name, start, end}.
add_marker tool
Add a marker at a position.

    Args:
        position: Position in seconds.
        name: Marker name.
        color: Marker color (0 = default).

    Returns:
        Object with marker index.
add_region tool
Add a region.

    Args:
        start: Start position in seconds.
        end: End position in seconds.
        name: Region name.
        color: Region color (0 = default).

    Returns:
        Object with region index.
get_markers tool
Get all markers in the project.

    Returns:
        Object with list of markers (position, name, index).
get_regions tool
Get all regions in the project.

    Returns:
        Object with list of regions (start, end, name, index).
delete_marker tool
Delete a marker by index.
delete_region tool
Delete a region by index.
rename_marker tool
Rename the marker get_markers numbers marker_index, keeping its position and color. An empty name clears it.
rename_region tool
Rename the region get_regions numbers region_index, keeping its bounds and color. An empty name clears it.
go_to_marker tool
Move the edit cursor to a marker.
go_to_region tool
Move the edit cursor to a region start.
get_track_envelope tool
Get a track envelope by name.

    Args:
        envelope_name: Envelope name (e.g., "Volume", "Pan", "Mute").

    Returns:
        Object with envelope info.
get_envelope_point_count tool
Get the number of points in an envelope.

    Args:
        envelope_name: Envelope name.

    Returns:
        Object with point count.
add_envelope_point tool
Add a point to an envelope. A missing Volume, Pan, Width, Mute or Trim Volume envelope
    (or a Pre-FX one) is created first: REAPER starts it with a point at 0:00 holding the
    track's current value, and the response has envelope_created.

    Args:
        envelope_name: Envelope name.
        time: Time position in seconds.
        value: Raw value. Pan -1..1 with +1 = LEFT (the reverse of set_track_pan); Width -1..1; Mute 0 = muted, 1 = unmuted. A raw volume value depends on the envelope's scaling, so use value_db there.
        shape: Point shape (0=linear, 1=square, 2=slow start/end, 3=fast start, 4=fast end, 5=bezier).
        value_db: Level in dB for Volume, Volume (Pre-FX) and Trim Volume; -150 is silence. Pass this or value.

    Returns:
        point_index, value, and shown: the value as REAPER displays it ("-6.00dB", "50%L").
get_envelope_points tool
Get all points from an envelope.

    Args:
        envelope_name: Envelope name.

    Returns:
        points (time, value, shape, shown). A volume envelope adds value_db to each point, and scaling.
delete_envelope_point tool
Delete an envelope point.

    Args:
        envelope_name: Envelope name.
clear_envelope tool
Delete all points from an envelope.

    Args:
        envelope_name: Envelope name.
set_track_automation_mode tool
Set the automation mode for a track.

    Args:
        mode: 0=trim/read, 1=read, 2=touch, 3=write, 4=latch.
arm_track_envelope tool
Arm or disarm an envelope for recording.

    Args:
        envelope_name: Envelope name.
        arm: True to arm, False to disarm.
get_fx_envelope tool
Get or create an automation envelope for an FX parameter.

    This enables automation of any FX parameter (e.g., a flanger knob in Guitar Rig).
    The envelope is created if it doesn't exist.

    Args:
        param_index: Parameter index (0-based). Use track_fx_get_num_params() to find available parameters.

    Returns:
        Object with envelope_name, param_name, point_count, and indices.
add_fx_envelope_point tool
Add an automation point to an FX parameter envelope.

    Args:
        time: Time position in seconds.
        value: The parameter's own value, within the min..max track_fx_get_param reports (a JSFX dB slider takes dB).
        shape: Point shape (0=linear, 1=square, 2=slow start/end, 3=fast start, 4=fast end, 5=bezier).

    Returns:
        point_index, value, and shown: the value as REAPER displays it.
get_fx_envelope_points tool
Get all automation points from an FX parameter envelope.

    Returns:
        Object with list of points (time, value, shown, shape, tension, selected).
delete_fx_envelope_point tool
Delete an automation point from an FX parameter envelope.

    Args:
        point_index: Point index (0-based) to delete.
clear_fx_envelope tool
Clear all automation points from an FX parameter envelope.

    Returns:
        Object with deleted_count.
undo tool
Undo the last action in REAPER.

    Returns:
        Object with undo description.
redo tool
Redo the last undone action in REAPER.

    Returns:
        Object with redo description.
get_undo_state tool
Get the current undo/redo state.

    Returns:
        Object with undo and redo descriptions.
select_track tool
Select a track.

    Args:
        exclusive: If True, deselect other tracks first.
select_all_tracks tool
Select all tracks.
unselect_all_tracks tool
Unselect all tracks.
get_selected_tracks tool
Get indices of all selected tracks.

    Returns:
        Object with list of selected track indices.
select_all_items tool
Select all media items.
unselect_all_items tool
Unselect all media items.
get_selected_items tool
Get all selected media items.

    Returns:
        Object with list of selected items.
copy_selected_items tool
Copy selected items to clipboard.
cut_selected_items tool
Cut selected items to clipboard.
paste_items tool
Paste items from clipboard at edit cursor.
delete_selected_items tool
Delete all selected items.
set_time_selection tool
Set the time selection.

    Args:
        start: Start time in seconds.
        end: End time in seconds.
get_time_selection tool
Get the current time selection.

    Returns:
        Object with start and end times.
clear_time_selection tool
Clear the time selection.
set_track_phase tool
Set the phase inversion of a track.

    Args:
        invert: True to invert phase, False for normal.
set_track_width tool
Set the stereo width of a track.

    Args:
        width: Width value (0=mono, 1=stereo, 2=200% width).
set_track_as_folder tool
Set a track as a folder parent or child.

    Args:
        folder_depth: 0=normal, 1=folder parent, -1=end of folder.
arm_track tool
Arm or disarm a track for recording.

    Args:
        arm: True to arm, False to disarm.
set_track_input tool
Set the record input for a track.

    Args:
        input_index: Input index (-1=no input, 0+=hardware inputs, 4096+=virtual MIDI).
set_track_monitor tool
Set the monitor mode for a track.

    Args:
        monitor: 0=off, 1=normal, 2=not when playing.
set_track_color tool
Set the color of a track.

    Args:
        r: Red component (0-255).
        g: Green component (0-255).
        b: Blue component (0-255).
get_track_peak tool
Get the current peak level of a track.

    Args:
        channel: Channel (0=left, 1=right).

    Returns:
        Object with peak value in dB.
get_track_peak_hold tool
Get the peak hold level of a track (highest peak since meters were last reset).

    Returns the max peak from a previous playback without needing to be actively
    playing - play the project, stop, then call this for gain staging.

    Args:
        channel: Channel (0=left, 1=right).

    Returns:
        Object with peak hold value in dB.
clear_all_peak_indicators tool
Clear the peak hold indicators on all tracks (including master).

    Resets the held peak values that accumulate during playback. Use before a
    fresh playback pass when you want clean readings for gain staging.
get_track_master_send tool
Get the master/parent send state of a track.

    Returns:
        Object with 'ret' field (1 = enabled, 0 = disabled).
set_track_master_send tool
Enable or disable the master/parent send on a track.

    When enabled, the track's audio routes to its parent folder track (or the
    master if it has no parent). Disable it when a track should only output
    through its sends (e.g., routed exclusively to a bus).

    Args:
        enabled: True to enable, False to disable.
run_action tool
Run a REAPER action by command ID.

    Args:
        action_id: REAPER action/command ID number.
run_action_by_name tool
Run a REAPER action by its named command id.

    Named commands (e.g. ReaScripts "_RS12345" or SWS "_SWS_...") are resolved
    to a numeric command id via NamedCommandLookup before firing. A purely numeric
    string (e.g. "40297") is treated as a built-in command id and run directly;
    prefer run_action(action_id) for built-ins.

    Args:
        action_name: Named command id (e.g. "_RS12345") or a numeric command id string.

    Returns:
        If the named command cannot be resolved,
        returns {"ok": False, "error": ...} without firing any action.
get_fx_presets tool
Get list of presets available for an FX.

    Returns:
        Object with list of preset names.
get_fx_preset tool
Get the current preset name of an FX.

    Returns:
        Object with current preset name.
set_fx_preset tool
Set the preset of an FX.

    Args:
        preset_name: Preset name.
save_fx_preset tool
Not supported: REAPER's API cannot save a named FX preset, so this tool always returns
    an error. Use get_track_fx_chunk to capture the current FX state.
get_eq_bands tool
Get all ReaEQ band settings in one structured call.

    Args:
        fx_index: FX index (0-based) of ReaEQ in the FX chain.

    Returns:
        Object with a 'bands' list. Each band has band_index, bandtype,
        bandtype_name, bandidx, paramtype, paramtype_name, normval, the
        REAPER-formatted value, and (for gain params) the computed gain_db.
set_eq_band tool
Set a ReaEQ band parameter.

    Pass real values by default: frequency in Hz (paramtype 0), gain in dB
    (paramtype 1), or Q (paramtype 2). Gain is converted to ReaEQ's normalized
    curve internally; freq and Q are sent raw.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: -1=master gain, 0=hipass, 1=loshelf, 2=band, 3=notch,
                  4=hishelf, 5=lopass, 6=bandpass, 7=parallel bandpass.
        bandidx: Band index within that type (0=first). Ignored for master gain.
        paramtype: 0=frequency (Hz), 1=gain (dB), 2=Q. Ignored for master gain.
        value: The value, in real units unless is_normalized=True.
        is_normalized: If True, value is a raw 0-1 normalized value written directly.
get_eq_band_enabled tool
Check whether a ReaEQ band is enabled.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: Band type (0=hipass, 1=loshelf, 2=band, 3=notch, 4=hishelf, 5=lopass).
        bandidx: Band index within that type (0=first).

    Returns:
        Object with 'ret' boolean (true=enabled).
set_eq_band_enabled tool
Enable or disable a ReaEQ band.

    Args:
        fx_index: FX index (0-based) of ReaEQ.
        bandtype: Band type (0=hipass, 1=loshelf, 2=band, 3=notch, 4=hishelf, 5=lopass).
        bandidx: Band index within that type (0=first).
        enabled: True to enable, False to disable.
find_eq tool
Find ReaEQ on a track, optionally adding it if absent.

    Args:
        instantiate: If True and ReaEQ is not present, add it.

    Returns:
        Object with 'ret' = the FX index of ReaEQ, or -1 if not found.
get_track_fx_chunk tool
Get the raw state chunk from an FX plugin (includes preset/state data).

    Useful for reading VSTi state data like Toontrack EZkeys chord progressions.
    The chunk contains the full serialized state of the plugin.

    Returns:
        Object with 'chunk' containing the FX state data string.
get_project_length tool
Get the length of the project (end of last item).

    Returns:
        Object with project length in seconds.
get_project_summary tool
Get a comprehensive summary of the current REAPER project.

    Returns everything needed to understand the project state and give
    useful mixing/production advice in a single call.

    Returns:
        Object with:
        - project_name: Name of the project file
        - project_path: Full path to the project
        - tempo: Project tempo in BPM
        - time_signature: {numerator, denominator}
        - project_length: Length in seconds
        - track_count: Total number of tracks
        - tracks: List of track info objects, each containing:
            - index: Track index (0-based)
            - name: Track name
            - volume_db: Volume in decibels
            - pan: Pan position (-1 to 1)
            - mute: Boolean mute state
            - solo: Boolean solo state
            - fx_count: Number of FX plugins
            - fx_names: List of FX plugin names
            - hidden_in: only for a hidden track, as in get_track
        - master: Master track info {volume_db, fx_count, fx_names, hidden_in}
        - markers: List of {index, position, name}
        - regions: List of {index, start, end, name}
get_play_position tool
Get the current playback position.

    Returns:
        Object with play position in seconds.
record tool
Start recording in REAPER.
pause tool
Pause playback in REAPER.
toggle_repeat tool
Toggle repeat/loop mode.

    Returns:
        Object with new repeat state.
get_repeat_state tool
Get the current repeat state.

    Returns:
        Object with repeat state (true/false).
zoom_to_selection tool
Zoom the arrange view to the time selection.
zoom_to_project tool
Zoom the arrange view to show the entire project.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 188 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 188 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 188 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 188 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 188 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 188 capabilities; 188 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    188 of 188 capabilities touch files
  • Tools that call the network
    Not seen in the traced code of 188 capabilities; 188 more call code the scanner could not follow, where it may happen
Where the code is: 188 handlers in 1 file at commit 3718e0158db9
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    2 manifests: pyproject.toml, requirements.txt
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 1 dependency line carries no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    mcp >=1.2.0,<2.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 188 capabilities; 188 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
MCP SDKmcp >=1.2.0,<2.0
Servers in the code1 (twelvetake-reaper-mcp)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-09
Signed releasesnot checked yet

Where it is published

MCP Registrycom.twelvetake/reaper-mcp
Listed in4 catalogs (awesome_punkpeye, github_search, glama, mcp_registry)
LicenseMIT
Created2025-12-11
Topicsai claude daw mastering mcp midi mixing model-context-protocol music-production reaper

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.