execute_command
Execute shell commands (cat, echo, ls, pwd) in the current working directory or a specified one. Commands are limited to allowed flags and no shell operators.
Instructions
Execute a shell command in the current shell working directory or a specified one. Command execution context is limited to: /app
Available commands: cat, echo, ls, pwd Available flags: --help, -a, -h, -l
Note: Shell operators (&&, |, >, etc.) are NOT supported. Paths in arguments are validated against the primary directory context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command string to execute (e.g., 'ls -l') | |
| working_dir | No | Optional directory path to run the command in (must be within primary allowed dir) |