run_command
Execute a named build, test, or lint command from the project's configured allow-list, with a single optional target argument. Commands run sandboxed with fixed arguments and bounded output.
Instructions
Run a named command from the workspace's [[command]] allow-list (build/test/lint/scripts) without leaving plumb. It runs only the exact fixed argv the user configured (no shell, no agent-supplied command line); the optional target fills a single {target} placeholder with one shell-safe argument. A command from a project's .plumb/config.toml must be trusted first (run plumb trust); a command from your global config always runs. The command runs under an OS sandbox (a write jail) when one is available. Output and runtime are bounded. Use execute_shell_command instead only for an ad-hoc command not worth adding to the allow-list (it must be enabled first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name of an entry in the [[command]] allow-list (in global or project .plumb/config.toml). You cannot pass an arbitrary command line — only a configured name. | |
| target | No | Optional value substituted for the single {target} token in the command's fixed argv (e.g. a test name or package). Restricted to one shell-safe argument ([A-Za-z0-9._/:@-]); refused if the command has no {target}. |