get_battery_status
Check current battery levels and charging status for AirPods, iPhone, and other devices tracked by AirBattery on macOS, with optional device filtering.
Instructions
Get current battery levels of the user's devices (AirPods, iPhone, mice, headphones, speakers...).
Data comes from the AirBattery app on this Mac. Each entry has:
level_percent: battery level 0-100
status: charging / discharging / paused / unknown
minutes_since_update: how old the reading is
stale: true when older than 10 minutes. A stale device is probably disconnected, so its level is the last known value, not the current one. Say so when answering.
Non-Apple devices only report while connected to this Mac, and some report coarse levels, so treat small differences cautiously.
Args: device: optional case-insensitive name filter, e.g. "airpods" or "mx master". include_nearcast: also include devices reported by other Macs on the LAN via AirBattery Nearcast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| include_nearcast | No |