{"success":true,"name":"findmy","description":"Track Apple devices/AirTags via FindMy.app on macOS.","category":"apple","path":"apple/findmy/SKILL.md","file":"SKILL.md","content":"---\nname: findmy\ndescription: \"Track Apple devices/AirTags via FindMy.app on macOS.\"\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [macos]\nmetadata:\n  hermes:\n    tags: [FindMy, AirTag, location, tracking, macOS, Apple]\n---\n\n# Find My (Apple)\n\nTrack Apple devices and AirTags via the FindMy.app on macOS. Since Apple doesn't\nprovide a CLI for FindMy, this skill uses AppleScript to open the app and\nscreen capture to read device locations.\n\n## Prerequisites\n\n- **macOS** with Find My app and iCloud signed in\n- Devices/AirTags already registered in Find My\n- Screen Recording permission for terminal (System Settings → Privacy → Screen Recording)\n- **Optional but recommended**: Install `peekaboo` for better UI automation:\n  `brew install steipete/tap/peekaboo`\n\n## When to Use\n\n- User asks \"where is my [device/cat/keys/bag]?\"\n- Tracking AirTag locations\n- Checking device locations (iPhone, iPad, Mac, AirPods)\n- Monitoring pet or item movement over time (AirTag patrol routes)\n\n## Method 1: AppleScript + Screenshot (Basic)\n\n### Open FindMy and Navigate\n\n```bash\n# Open Find My app\nosascript -e 'tell application \"FindMy\" to activate'\n\n# Wait for it to load\nsleep 3\n\n# Take a screenshot of the Find My window\nscreencapture -w -o ~/.hermes/cache/scratch/findmy.png\n```\n\nThen use `vision_analyze` to read the screenshot:\n```\nvision_analyze(image_url=\"~/.hermes/cache/scratch/findmy.png\", question=\"What devices/items are shown and what are their locations?\")\n```\n\n### Switch Between Tabs\n\n```bash\n# Switch to Devices tab\nosascript -e '\ntell application \"System Events\"\n    tell process \"FindMy\"\n        click button \"Devices\" of toolbar 1 of window 1\n    end tell\nend tell'\n\n# Switch to Items tab (AirTags)\nosascript -e '\ntell application \"System Events\"\n    tell process \"FindMy\"\n        click button \"Items\" of toolbar 1 of window 1\n    end tell\nend tell'\n```\n\n## Method 2: Peekaboo UI Automation (Recommended)\n\nIf `peekaboo` is installed, use it for more reliable UI interaction:\n\n```bash\n# Open Find My\nosascript -e 'tell application \"FindMy\" to activate'\nsleep 3\n\n# Capture and annotate the UI\npeekaboo see --app \"FindMy\" --annotate --path ~/.hermes/cache/scratch/findmy-ui.png\n\n# Click on a specific device/item by element ID\npeekaboo click --on B3 --app \"FindMy\"\n\n# Capture the detail view\npeekaboo image --app \"FindMy\" --path ~/.hermes/cache/scratch/findmy-detail.png\n```\n\nThen analyze with vision:\n```\nvision_analyze(image_url=\"~/.hermes/cache/scratch/findmy-detail.png\", question=\"What is the location shown for this device/item? Include address and coordinates if visible.\")\n```\n\n## Workflow: Track AirTag Location Over Time\n\nFor monitoring an AirTag (e.g., tracking a cat's patrol route):\n\n```bash\n# 1. Open FindMy to Items tab\nosascript -e 'tell application \"FindMy\" to activate'\nsleep 3\n\n# 2. Click on the AirTag item (stay on page — AirTag only updates when page is open)\n\n# 3. Periodically capture location\nwhile true; do\n    screencapture -w -o ~/.hermes/cache/scratch/findmy-$(date +%H%M%S).png\n    sleep 300  # Every 5 minutes\ndone\n```\n\nAnalyze each screenshot with vision to extract coordinates, then compile a route.\n\n## Limitations\n\n- FindMy has **no CLI or API** — must use UI automation\n- AirTags only update location while the FindMy page is actively displayed\n- Location accuracy depends on nearby Apple devices in the FindMy network\n- Screen Recording permission required for screenshots\n- AppleScript UI automation may break across macOS versions\n\n## Rules\n\n1. Keep FindMy app in the foreground when tracking AirTags (updates stop when minimized)\n2. Use `vision_analyze` to read screenshot content — don't try to parse pixels\n3. For ongoing tracking, use a cronjob to periodically capture and log locations\n4. Respect privacy — only track devices/items the user owns\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}