execute_command_enhanced
Run remote commands via SSH with automatic timeout extension and optional streaming output. Supports multiple authentication methods and sudo.
Instructions
Execute a command with auto timeout extension and streaming.
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": {
"host": "<host>",
"command": "<command>"
},
"name": "execute_command_enhanced"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| command | Yes | ||
| timeout | No | ||
| password | No | ||
| username | No | ||
| max_timeout | No | ||
| key_filename | No | ||
| sudo_password | No | ||
| enable_command | No | enable | |
| streaming_mode | No | ||
| enable_password | No | ||
| progress_callback | No | ||
| auto_extend_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |