with one click
termux-api-docs
// Reference manual for Termux API commands. Use this to learn how to control Android hardware (camera, battery, clipboard, etc.) via the command line.
// Reference manual for Termux API commands. Use this to learn how to control Android hardware (camera, battery, clipboard, etc.) via the command line.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | termux-api-docs |
| description | Reference manual for Termux API commands. Use this to learn how to control Android hardware (camera, battery, clipboard, etc.) via the command line. |
This skill provides documentation for the Termux API. You can use the exec tool to run these commands directly.
Requirement: The user must have the
Termux:APIapp installed and thetermux-apipackage (pkg install termux-api).
Take a photo:
termux-camera-photo -c [0=back, 1=front] output.jpg
Example: termux-camera-photo -c 0 my_photo.jpg
Workflow: Take and Send
termux-camera-photo -c 0 selfie.jpgmessage tool with media=["/data/data/com.termux/files/home/picoclaw/selfie.jpg"] (or relative path if in workspace).Get status:
termux-battery-status
Returns JSON with percentage, health, and plugged status.
Turn on/off:
termux-torch [on|off]
Get current location:
termux-location
Returns JSON with latitude, longitude, and accuracy.
Record audio:
termux-microphone-record -d [duration_in_seconds] -f [filename]
Example: termux-microphone-record -d 5 -f recording.mp3
Get content:
termux-clipboard-get
Set content:
termux-clipboard-set "text to copy"
Show notification:
termux-notification --title "My Title" --content "My Message"
Get volume info:
termux-volume
Set volume:
termux-volume [stream] [volume_level]
Streams: call, system, ring, music, alarm, notification
Example: termux-volume music 10
Speak text:
termux-tts-speak [-l language] [-p pitch] [-r rate] "text to speak"
Parameters:
-l [language]: Language to use (e.g., en, fr, es, de).-r [rate]: Speech rate (default: 1.0).-p [pitch]: Speech pitch (default: 1.0).Examples: Speak in English:
termux-tts-speak -l en "Hello, I am Picoclaw."
Speak in French:
termux-tts-speak -l fr "Bonjour, je suis Picoclaw."
Get connection info:
termux-wifi-connectioninfo
Scan for networks:
termux-wifi-scaninfo
Send SMS:
termux-sms-send -n [phone_number] "Message content"
Get Call Log:
termux-call-log -l [limit]
To check if the API is working:
termux-battery-status
If this hangs or fails, the user might need to grant permissions to the Termux:API app on their phone.