run_command
Execute commands on any managed instance via SSH, with automatic fallback to AWS SSM if SSH is unreachable.
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 |
|---|---|---|---|
| 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 |
| instance_id | Yes | Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'. |