run_command
Run build, test, git, and language toolchain commands in your workspace, with safe execution that rejects shell operators and requires confirmation for destructive actions.
Instructions
Run a development command in the workspace (build tools, package managers, test runners, git, language toolchains). Commands run WITHOUT a shell: pipes, redirects, && and ; are rejected — issue separate calls instead. Only allowlisted executables are permitted; destructive commands require confirm=true. Prefer run_build / run_tests / run_lint, which pick the right command for this project automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Working directory relative to the workspace root. Default: the root. | |
| command | Yes | Command line, e.g. "npm ci" or "mvn -B -Dtest=FooTest test". | |
| confirm | No | Required for commands the bridge classifies as destructive (force push, reset --hard, recursive delete, publish, prune). | |
| workspace | No | Workspace alias. Defaults to the active workspace. | |
| timeout_seconds | No | Timeout for this command. |