run_action_by_name
Resolve and run REAPER named commands like ReaScript or SWS actions by name, or fire built-in commands by numeric ID. Fails safely if the name cannot be resolved.
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 |