Assistant: phone actions -- the card, each action's intent, Google Maps and OsmAnd

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HomerandClaude Opus 5.5 committed 2026-11-10 16:51:50 +00:00
1 parent bdb0b81b85
commit 9cd5e4b999
1 file changed
+35
+35
@@ -138,3 +138,38 @@ what Settings › Assistant › *Wake word* turns on (off by default).
dontkillmyapp.com for phones that kill background services.
- **Cost**: a continuous microphone and CPU inference without the hotword chip. Not yet measured
on a phone.
## Phone actions (spec 3.6.0)
The server's `phone_action` tool (`harness/phone.md` in the CLI) is offered in a chat once a
message comes from the app: every message declares `client: ["phone_actions"]`. A call waits on a
`phone_action` card in the `ask` frame; `CardItem.phone` is the checked action (`action`,
`summary`, its fields). The card (`ui/chat/PhoneCard.kt`) is drawn in the chat's card sheet and
inline in the assistant's sheet: the model's summary, how it will be done, its facts, and
Cancel / **Do it**. Cancel answers `{result: {status: declined}}`; Do it runs
`actions/ActionRunner` and answers `done`, or `failed` with the reason (English, for the model).
Never while the phone is locked.
| Action | How |
|---|---|
| alarm, timer | `AlarmClock.ACTION_SET_ALARM` / `ACTION_SET_TIMER` (`SET_ALARM` permission) |
| calendar_event | `ACTION_INSERT` on `CalendarContract.Events`: the person saves it |
| sms_draft, email_draft | `ACTION_SENDTO` `smsto:` (numbers only; a name is left to the person) / `mailto:` |
| dial | `ACTION_DIAL`: the person places the call |
| open_app, open_url | the launcher's app by its label (`<queries>` for the launcher); http/https only |
| media, torch | `AudioManager.dispatchMediaKeyEvent`; `CameraManager.setTorchMode` |
| settings_panel | `Settings.Panel` (wifi, internet, nfc, volume) or the page (bluetooth, location, do not disturb) |
| automation_intent | Tasker's `ACTION_TASK` by name, values as `%local` variables (`PERMISSION_RUN_TASKS`; Tasker's *Allow external access*), else the broadcast `eu.llembas.android.action.AUTOMATION` with `task`, `app` and the values |
| navigate, add_stop, search_nearby, stop_navigation | the navigation app, below |
**Navigation app** (Settings): whichever of Google Maps and OsmAnd is installed; with both, the
card asks. Google Maps: `google.navigation:`, the `maps/dir` URL with waypoints, `geo:0,0?q=`;
it cannot take a stop into a running route (the route starts again through the stop) and cannot be
told to stop (`failed`, with why). OsmAnd: its intent API only (`osmand.api://` navigate,
navigate_gpx with the route as GPX `data` -- every point needs lat/lon --, navigate_search,
stop_navigation); its AIDL classes are GPLv3 and are not used. `replace_route` is OsmAnd's
`force`. Optional: *Ask OsmAnd about the route* uses `get_info` (through a see-through
`ResultActivity`) for the phone's position and the running route's destination, once the person
allowed LLeMbas inside OsmAnd -- so a search near here and `add_stop` without a destination work.
Not walked on a phone: OsmAnd's permission screen wording, and whether Google Maps keeps the
waypoints in navigation mode.