run_reascript
Execute any Lua code with full REAPER API access to perform advanced actions not covered by other tools, and retrieve the result as a string.
Instructions
Execute arbitrary Lua code inside REAPER's ReaScript environment (full access to the reaper.* API) and return its result as a string. Use this for anything not covered by a dedicated tool -- e.g. advanced routing, item editing, or calling ReaScript functions with no wrapper yet. Be precise: this runs with the same permissions as any ReaScript.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "run_reascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |