execute
Run privileged commands on local or remote hosts, requiring human approval before execution. Supports pipelines, custom timeouts, and environment variables.
Instructions
Execute a command through sudo-proxy with human approval. The command runs on the target host (local by default). A human must approve privileged commands before they execute. Call start_server first if sudo-proxy is not already running. Supports pipelines: use pipeline for multi-stage commands (e.g. [["ls", "/tmp"], ["wc", "-l"]]) or argv for a single command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables | |
| argv | No | Command as argument array | |
| host | No | Target host (omit for localhost) | |
| timeout | No | Timeout in milliseconds (default: 120000, max: 600000) | |
| pipeline | No | Pipeline of commands, each as an argument array. Use this for piped commands like [["ls", "/tmp"], ["wc", "-l"]]. | |
| privileged | No | Privilege escalation (default: true) | |
| description | No | What this command does (shown in TUI prompt) | |
| forward_agent | No | Forward the local SSH agent to the command (unprivileged only). Requires the proxy session to have been started with `forward_agent: true`. Useful for `git clone` of private repos via SSH on a remote host. |