Android Media
Apps & Automationandroid-mediaAndroid Media is an Agent Skill for apps & automation published in the ModalityDance/PalmClaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Operate Android media workflows with the media tool, including photo/video capture, media listing, audio recording/playback, and permission recovery. Use for camera, gallery, microphone, and playback tasks.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ModalityDance/PalmClaw/blob/HEAD/app/src/main/assets/skills/android-media/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/android-media, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Android Media
Use media for all media actions.
Tool Map
action=capture_photoaction=record_videoaction=list_recentaction=audio_recordwithmode=start|stop|statusaction=audio_playbackwithmode=start|stop|statusaction=open_app_settings
Default Automation Policy
- Start with direct tool execution.
- Use
request_if_missing=trueandopen_settings_if_failed=truefor permission recovery. - Keep
wait_user_confirmation=trueonly for camera/system flows that require user completion.
Capture Playbook
- Launch
capture_photoorrecord_video. - Wait for user to complete camera UI and return.
- Verify output URI when available.
- Return machine-readable output URI metadata.
Audio Playbook
- Start recording with
audio_record(mode="start"). - Stop with
audio_record(mode="stop"). - Replay with
audio_playback(mode="start", path="...").
Common Calls
media(action="list_recent", kind="images", count=10, request_if_missing=true, open_settings_if_failed=true, wait_user_confirmation=true)media(action="capture_photo", wait_user_confirmation=true, check_output_after_confirm=true)media(action="audio_record", mode="start", filename="note.m4a")
Failure Recovery
permissions_missing: run with permission recovery flags.capture_not_foundorrecord_not_found: retake and ensure save is completed.ui_unavailable: keep app foreground and retry.