run_command
Execute commands on managed servers via SSH with automatic fallback to AWS SSM when unreachable, for resilient remote management.
Instructions
Run a command on any managed instance. Defaults to SSH with automatic failover to AWS SSM when sshd is unreachable (e.g. under heavy load) on SSM-managed AWS instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | Instance ID, name, or custom-server name. | |
| command | Yes | Command to execute. | |
| transport | No | Execution channel. 'auto' (default) tries SSH then falls back to AWS SSM if the SSH connection fails; 'ssh' forces SSH; 'ssm' forces AWS Systems Manager (AWS-only). | auto |