Raw ReaScript call (advanced)
reaper_callCall any ReaScript API function by name with positional arguments to cover REAPER operations not available in dedicated tools. Use returned 'handle:N' pointers as arguments for chained calls.
Instructions
Escape hatch: call ANY ReaScript API function by name with positional args, for operations the dedicated tools don't cover. Example: {"func":"CountTracks","args":[0]}. Pointers returned by the API come back as "handle:N" strings, valid only within this REAPER session; pass them back verbatim as args to chain calls. Prefer the dedicated reaper_* tools when one exists.
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": {
"func": "<func>"
},
"name": "reaper_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Positional arguments; use "handle:N" strings for pointers | |
| func | Yes | ReaScript function name, e.g. 'CountTracks' |