run_command
Dispatch any catalogued Dorico command by ID with optional parameters. Use when no dedicated tool exists and check registry status to confirm the command is verified.
Instructions
Dispatch any catalogued Dorico command by ID, with optional parameters.
The escape hatch, reaching the whole catalogued command set rather than the
handful of tools here. What it can send is bounded by the catalog.
Returns:
Result dictionary with the command outcome and the catalog row status, which
says how well that command is actually established.
Note:
Read the registry_status in the answer before trusting the result: a row may
be verified, reachable, unavailable, broken or untested, and only verified
has been seen to work. Combined with kOK meaning acceptance rather than
effect (docs/protocol.md), a clean return from an untested row is weak
evidence. Check with get_status or by inspecting the score.
Prefer a dedicated tool where one exists: write_score, transpose,
switch_mode, playback and save all add validation or verification this does
not. Use search_commands to find a command ID and what it takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Query parameters for the command, whose names differ per command and are declared in the catalog rather than here. Add {'confirm': True} to authorise a command the catalog marks destructive. Without it such a command is refused. | |
| command_id | Yes | The command to send, exactly as the catalog declares it, e.g. 'Edit.Undo'. Case and spelling are not corrected. Find one with search_commands or the dorico://commands resource. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||