remote_execute
Execute a single command on remote Linux or Windows hosts over short-lived SSH or WinRM connections, using a saved profile or an ad-hoc target.
Instructions
Execute one command using a short-lived SSH or WinRM connection.
connection may override a profile or fully describe an ad-hoc target, for example: {"protocol":"ssh","host":"server","username":"root","password":"..."}. For self-signed WinRM HTTPS use ssl=true and cert_validation=false. WinRM shell may be powershell or cmd. SSH executes through the remote user's shell.
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": "remote_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| shell | No | auto | |
| command | Yes | ||
| profile | No | ||
| timeout | No | ||
| connection | No | ||
| output_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||