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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "execute_command"
}
}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) |