reaper_eval
Execute arbitrary Lua inside REAPER to control projects, tracks, and rendering when no typed tool fits; returned values are sent back as JSON.
Instructions
Execute arbitrary Lua inside REAPER. The reaper global is available; values you return are sent back as JSON. Use this for anything not covered by a typed tool. Example: return reaper.GetNumTracks(). If you pass args, it is exposed in the chunk as the variable args.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| code | Yes | ||
| undo | No | ||
| label | No | eval |