exec
Execute arbitrary shell commands on a disposable Linux VM for one-off tasks. For long-running or interactive processes, use process_start; for coding agents, use agent_start.
Instructions
Execute an arbitrary shell command on the dedicated disposable Linux agent VM. Oversized stdout/stderr use bounded head/tail previews plus separate artifacts. Use this for commands that complete on their own. For servers, watchers, REPLs, or other long-running/interactive commands, use process_start instead. Do not launch Codex, Antigravity CLI (agy), or Claude Code agent work through exec; use agent_start so coding agents run in persistent Herdr workspaces. Harmless --help/--version probes remain allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Defaults to the agent user home directory. | |
| env | No | Additional environment variables. | |
| command | Yes | Shell command to execute with bash -lc. | |
| timeoutMs | No | Maximum execution time in milliseconds. |