Execute Remote Command
proc_execExecute a non-interactive command on a remote system with policy and safety checks, supporting working directory, environment variables, and timeout limits.
Instructions
Executes a non-interactive command on the remote system after policy and safety checks
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": {
"sessionId": "<sessionId>",
"command": "<command>"
},
"name": "proc_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| env | No | Environment variables | |
| command | Yes | Command to execute | |
| sessionId | Yes | SSH session ID | |
| timeoutMs | No | Command execution timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| durationMs | Yes | ||
| safetyWarning | No |