Run a raw Termux:API command
termux_apiRun any termux-* command directly without a shell to access Android features like WiFi info, notifications, or SMS, with every call logged for audit.
Instructions
Advanced escape hatch: run any termux-* command directly (for example command="wifi-connectioninfo", args=["-i"]). No shell is involved, but the command still has the full permissions granted to Termux:API. Privacy-sensitive commands such as SMS, calls, contacts, location, camera and microphone are available if the Termux:API app has been granted those Android permissions; every call is written to the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command arguments. No shell expansion is performed. | |
| stdin | No | Text written to standard input. | |
| command | Yes | Command name with or without the termux- prefix, e.g. "wifi-connectioninfo". | |
| timeout_sec | No | Timeout. Default from config. |