run_command
Run system or shell commands and retrieve stdout, stderr, and exit code. Supports customizable working directory and timeout for automated tasks.
Instructions
Run a system/shell command and capture its stdout, stderr and exit code.
This executes arbitrary commands on the host with the server's privileges.
Args: params (RunCommandInput): command, shell flag, cwd and timeout.
Returns: str: JSON like {"ok": true, "returncode": 0, "stdout": "...", "stderr": "...", "timed_out": false}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |