computer_bash
Execute shell commands on a specified device's host machine to manage system operations or troubleshoot. Provides exit code, stdout, and stderr results.
Instructions
Run a shell command on the host machine that owns this device.
Danger tier: the command runs as the desktop user, unsandboxed, under the platform default shell (/bin/sh on macOS/Linux, cmd.exe on Windows), so bash-only syntax such as [[ ]] may not work. Treat it as shell access.
A non-zero command exit is reported in data.exitCode, not as a tool error — the API call itself succeeded.
Args: serialno: The computer device serialno, from list_devices. command: The shell command to run. timeout: Command budget in SECONDS. Omit or 0 to let the server apply its 120s default.
Returns: JSON envelope whose data carries exitCode, stdout and stderr.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |