Run command on host
run_commandExecute shell commands on the host system with configurable working directory and timeout. Run scripts and manage files in a controlled environment.
Instructions
Run a shell command on the real host as the current desktop user.
Bash (/bin/bash -lc) on Linux/macOS, PowerShell on Windows.
The server blocks privilege escalation and several obviously destructive system commands.
Note: deletion via shell (rm / Remove-Item) is NOT blocked and does NOT prompt;
use file_delete for guarded deletes that request approval.
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": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||