Skip to main content
Reagent connects to REAPER through a Lua Script Bridge, giving you full control over your projects through natural language. This page covers what you can do and how it works.

How It Works

The Bridge is a script that runs inside REAPER and listens for commands from Reagent. When you send a message:
  1. Reagent figures out what you want to do
  2. Sends commands to REAPER through the Bridge
  3. REAPER executes the commands
  4. Results come back to Reagent
All operations are wrapped in undo blocks, so you can always undo any changes with Cmd/Ctrl + Z in REAPER.

The Toolbox

Reagent has access to a set of specialized tools for interacting with REAPER. You don’t need to know the tool names—just describe what you want in plain language and Reagent picks the right tools automatically.

Query Tools

These tools read information from your project without making changes.
ToolWhat it does
Check ConnectionVerifies REAPER is running and the bridge is active
Get Project StateReturns project overview: name, tempo, time signature, track/item counts, selection state
Get TracksLists tracks with properties like name, color, mute/solo, volume, pan, and folder structure
Get Media ItemsReturns detailed item information including position, length, takes, and fades
Get Markers & RegionsLists all markers and regions with positions, names, and colors
Get Installed PluginsLists available FX (VST, VST3, AU, CLAP, JS) with type and manufacturer info
Get Media Source InfoReturns source file details: type, length, channels, sample rate, file size
Get Items by GUIDFast lookup of specific items by their unique identifier

Action Tools

These tools make changes to your project.
ToolWhat it does
Execute ReaScriptRuns custom Lua code in REAPER for operations not covered by other tools
Trim Item SilenceRemoves silent portions from items or splits at silence boundaries
Mark PeaksDetects transients and amplitude peaks, places take markers
Replace ItemsSwaps media items while handling track placement and alignment
Randomize ItemsApplies pitch, volume, timing, and other randomization to items

Reference Tools

ToolWhat it does
Search REAPER APISemantic search of ReaScript API docs to find functions and verify signatures

Limitations

Some things aren’t possible through scripting:
  • Operations requiring modal dialogs
  • Real-time monitoring
If something isn’t possible, Reagent will explain why and suggest alternatives.
Modal dialogs or popups in REAPER will block Reagent until dismissed.