Documentation Index
Fetch the complete documentation index at: https://docs.argentos.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theexec tool gives your agent the ability to run bash commands on the host system. This is one of the most powerful tools available, enabling the agent to install software, manage files, run scripts, query APIs, and automate system tasks.
Usage
The agent calls theexec tool with a command string:
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
command | string | required | The bash command to execute |
timeout | number | 120000 | Timeout in milliseconds |
cwd | string | workspace | Working directory |
Security
Sandbox Modes
| Mode | Behavior |
|---|---|
| Unrestricted | Commands run with no restrictions |
| Sandboxed | Dangerous commands (rm -rf, sudo, etc.) require user approval |
| Locked | Command execution is disabled entirely |
Tool Policies
You can configure per-command policies inargent.json:
Approval Flow
In sandboxed mode, when the agent attempts a command that requires approval:Working Directory
By default, commands run in the agent’s workspace directory (configured inargent.json). The agent can specify a different cwd per command.
Timeouts
Commands that exceed the timeout are killed. The default timeout is 120 seconds (2 minutes). Long-running tasks should be broken into smaller steps or run in the background.
Output Handling
- stdout is returned as the tool result
- stderr is included in the result with an error flag if the exit code is non-zero
- Large outputs may be truncated to fit within token limits
