Run Shell Command
shell_execRuns arbitrary shell commands on the Unraid host over SSH as the SSH user, requiring explicit confirmation before execution.
Instructions
⚠ Runs an arbitrary shell command on the Unraid host over SSH as the SSH user (typically root, i.e. full control of the server). Requires confirm: true on every call; without it the tool refuses and nothing runs. Prefer a dedicated tool when one covers the task, and use file_read for plain file reads (it is ungated). Non-zero exit codes are reported as results, not errors; stdout and stderr are each truncated beyond 30000 characters. Requires SSH to be configured (UNRAID_SSH_* environment variables).
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": "shell_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command line run by the host's shell as the SSH user; pipes work, e.g. `dmesg | tail -n 50`. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |
| timeout_seconds | No | Seconds to wait for the command; on timeout the call fails but the remote process may keep running. |