shell_execute
Execute whitelisted shell commands with controlled stdin, timeout, and working directory, returning stdout, stderr, and execution time for secure automation.
Instructions
Execute a shell command Allowed commands: echo, cat, ls Allowed patterns:
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>",
"directory": "<directory>"
},
"name": "shell_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | Input to be passed to the command via stdin | |
| command | Yes | Command and its arguments as array | |
| timeout | No | Maximum execution time in seconds | |
| directory | Yes | Absolute path to a working directory where the command will be executed |