Run Raw i3 Command
run_commandSend any raw i3/Sway command for operations lacking a dedicated tool, such as marks, gaps, bar, or reload. Validate input as it can be destructive.
Instructions
Run a raw i3/Sway command string — the escape hatch for operations without a dedicated tool: marks (mark/unmark), i3-gaps (gaps ...), i3bar (bar ...), scratchpad show/hide, and reload/restart. DESTRUCTIVE / open-world: the payload is unrestricted and CAN include kill, restart, reload, or exit (which logs the user out), so validate before sending. Prefer the typed tools (focus_window, move_window, set_layout, ...) whenever one fits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Raw i3/Sway command payload to send. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | First error message across the payload, or null on full success. | |
| success | Yes | True only if every command in the payload succeeded. | |
| outcomes | No | Per-command outcomes, in payload order. |