execute
Run single commands or multi-line scripts on a remote server via SSH. Supports sudo, custom timeouts, and requires approval with audit reason.
Instructions
Execute a command or multi-line script on a remote server via SSH. For single commands use command, for multi-line scripts use script. Requires approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Human-readable explanation of what this command does and why (for audit log) | |
| script | No | Multi-line bash script (alternative to command) | |
| server | Yes | Server name | |
| command | No | Single command to execute | |
| timeout | No | Timeout in seconds (default: 30, max: 300) | |
| use_sudo | No | Use sudo |