Run a shell command on a device
pi_command_runRun shell commands over SSH on a remote Raspberry Pi or device, returning stdout, stderr, and exit code for automation and troubleshooting.
Instructions
Execute a shell command on the remote device via SSH. Returns stdout, stderr, and exit_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command line to execute. | |
| device_id | Yes | IP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device. | |
| timeout_ms | No | Execution timeout in milliseconds (default 30000, max 300000). |