take_photo
no demo yetTry asking
- Take a photo
- snap a picture
- take a photo with a 3 second timer
- capture an image with the rear camera
ghost skill run ghost/camera take_photo AOSP Camera: take a photo (back or front lens, optional countdown), take a selfie, record a short video, report the newest capture.
4actions not benchmarked yet
No clean demo yet. Recordings will start on HOME and show the app launching.
Demo shows: take_photo (defaults: camera=back, timer_s=0)
Ghost in the Droid seed skill for the AOSP Camera (
com.android.camera2). No account; verified through MediaStore, not screenshots.
| Action | What it does | Params |
|---|---|---|
take_photo | Take a photo, return the saved path | camera (back, front), timer_s (0, 3, 10) |
take_selfie | Front-lens photo | timer_s |
record_video | Record an N-second clip | seconds (1 to 60), camera |
last_capture | Newest photo and video in MediaStore | none |
pip install "ghost-in-the-droid>=1.6.0" # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/camera
ghost skill run ghost/camera take_photo --param camera=back --param timer_s=3 --device emulator-5554
ghost skill run ghost/camera record_video --param seconds=5 --device emulator-5554
From any MCP agent:
run_skill(name="ghost/camera", action="take_selfie")
# {"camera": "front", "timer_s": 0, "photo": {"path": "/storage/emulated/0/Pictures/IMG_20261005_202128.jpg", ...}}
On a physical phone with Ghost's MCP server, the open_camera tool opens OEM cameras in a mode with a timer; this skill is the deterministic, verifiable capture path for AOSP Camera.
Android 14 emulator (google_apis x86_64, 1080x2400, 420 dpi, emulated cameras), Camera 2.0.002, en-US, fresh app data and reused state. Signed self-runs live in runs/.
Geotagging is switched off on first run and location is denied. The skill never deletes media. License: MIT.
| App version | Android | Device | Skill version | Signed self-runs (pass/total) | Dates |
|---|---|---|---|---|---|
| 2.0.002 | 14 | Google/sdk_gphone64_x86_64 (emulator, 1080x2400, 420 dpi, en-US) | 1.0.0, 1.0.1 | 12/12 | 2026-10-05 |
Untested so far: physical devices, other OEM skins, other screen sizes, other locales.
None in the signed self-runs.
com.android.camera2; on devices without it, adapt by targeting the OEM camera and its shutter landmark.SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on, and how success is recognised, so an agent can adapt it to another camera app.
Package: com.android.camera2 (AOSP Camera, shipped on emulator and many AOSP builds)
Verified: 2026-10-05 on a headless emulator pool, Android 14 google_apis x86_64, 1080x2400 @ 420 dpi, Camera 2.0.002, en-US, emulated back and front cameras.
Skill class: HARD. No login, no checkpoints.
android.media.action.STILL_IMAGE_CAMERA (photo mode) or android.media.action.VIDEO_CAMERA (video mode).id/shutter_button (desc Shutter), id/mode_options_toggle (desc Options). The Options row holds id/camera_toggle_button (desc Back camera / Front camera), id/countdown_toggle_button (desc Countdown timer is off, ... 3 seconds, ... 10 seconds; each tap cycles), grid and flash toggles. The row collapses after a capture.content query --uri content://media/external/images/media or .../video/media) with date_added at or after it and a non-zero size. Photos land in Pictures/IMG_*.jpg, videos in Movies/VID_*.mp4."Remember photo locations?" with a pre-ticked checkbox and NEXT: untick, then NEXT. If the location permission dialog still appears, answer Don’t allow. Camera and microphone are granted by default on the emulator; if a device asks, the skill answers While using the app.
take_photo(camera, timer_s)Photo mode, pick lens and countdown, press the shutter, return {photo: {path, date_added, size}, camera, timer_s}.
take_selfie(timer_s)Same as take_photo with the front lens fixed; the validator also checks the front lens was selected.
record_video(seconds, camera)Video mode, press the shutter, wait seconds, press it again, return {video: {path, date_added, size, seconds}}.
last_capture()No UI: return the newest photo and video rows from MediaStore and whichever is newer.
com.android.camera2; on devices without it, adapt by targeting the OEM camera and its shutter landmark.Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
take_photoTry asking
ghost skill run ghost/camera take_photo take_selfieTry asking
ghost skill run ghost/camera take_selfie record_videoTry asking
ghost skill run ghost/camera record_video last_captureTry asking
ghost skill run ghost/camera last_capture Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.1latest | never | >=2.0 | pending | 18.6 KB | untagged |