shell_exec
Run shell commands on Termux to inspect files and perform diagnostics on demand.
Instructions
Execute arbitrary shell commands on the Termux device. Useful for direct filesystem inspection and diagnostics. Only call when the user has explicitly requested execution, or when diagnostics are clearly required for the task at hand. Do not use for speculative exploration or as a default first step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the command. Default is the home directory. | |
| command | Yes | The shell command to run. | |
| timeout | No | Timeout in milliseconds (max 300000ms). Default is 10000ms. |