run_action_by_name
Run any REAPER action by its named command ID, resolving custom or SWS command names to numeric IDs before execution, and returning an error if the command cannot be found.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_name | Yes |