Run a command
run_commandExecute programs with direct arguments, bypassing shell interpretation. For pipelines, invoke zsh with -c. Requires admin mode and allowlist configuration.
Instructions
Run a program with arguments (no shell — pass argv, not a command line). Requires admin mode AND MACCTL_ALLOW_EXEC=true; the program must be in MACCTL_COMMAND_ALLOWLIST when that is set. For a shell pipeline, run command="zsh", args=["-c","…"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (supports ~). | |
| args | No | Arguments (each passed verbatim; no shell expansion). | |
| command | Yes | Program to run (name or absolute path). |