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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "termux_api"
}
}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. |