This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.

Controls (Control Center, the Lock Screen, the Action button, Quick Settings)

A control is a button the system draws outside the app; a press runs one of the app's tools or opens one of its locations (LLP 1126.004). iOS and iPadOS 18 and later draw them: the build puts each offered control in the app's WidgetKit extension, where the person adds it to Control Center, the Lock Screen or the Action button. Android draws each as a Quick Settings tile, which the person adds by editing Quick Settings. The Mac and the watch do not yet.
Declare each in app.json:
json
"controls": [
{ "kind": "refresh", "title": "Refresh", "symbol": "arrow.clockwise", "tool": "refresh" },
{ "kind": "inbox", "title": "Inbox", "symbol": "tray", "url": "/inbox" }
]
•
kind matches [A-Za-z][A-Za-z0-9_-]* and is unique among the app's controls regardless of case. It is the control's identity: a placed control is found again by it.
•
title and symbol (an SF Symbol name) are required; description is optional.
•
Exactly one of tool and url. A tool names a tool line (control-tool) and needs no intents.tools face. It may not destroys (control-destroys) or take a required parameter (control-arguments); a press passes none for each optional one. A url is one app path (/inbox, not //inbox), and needs the navigation root and a declared route that matches it; a notfound route does not count (control-url).
•
authentication, on a tool control only: required (the default) runs it only for the authenticated person, local only on an unlocked device, always on a locked one too (LLP 1133.023 D10).
The compiler walks the tool's action, the actions it calls, both arms of every branch, the then of every mutation it sends, the resources it refreshes, and the actions of the tasks and sequences whose gate or key reads a slot it assigns, and records what it can reach: Live Activity starts, updates and ends, microphone, camera and screen capture, speech recognition on the microphone, a recorder, and a capture restart. A tool that can reach any capture may not have an intents.tools face (intents-capture-face).
Each native binary's bake decides every control's placement, in this order, and puts it in compat.inputs.controls and the compatibility id, so any change to a row, its tool's signature or its effects is a new binary. The web has no binary and its id does not move.
1.
A host other than iOS, iPadOS and Android (the Mac, the watch, tvOS, visionOS, Linux, Windows): omitted, control-host. Android's placement is below.
2.
A build that packages no control extension: omitted, control-metadata. The Apple build on Linux is one, since only Xcode extracts a control's App Intents metadata; so is --extensions without controls.
3.
A url: offered from iOS 18.
4.
A tool that is known to start camera, screen or speech capture: omitted, control-capture.
5.
A tool that may record audio (the microphone, or a recorder): its tool must start a Live Activity that live_activities declares (control-recording-activity) and the app must grant device.microphone-background (grant-needs), or the bake fails; then omitted, control-recording-unqualified, until a locked iPhone has recorded through it.
6.
A tool whose reach starts, updates or ends a Live Activity: offered from iOS 18, as a LiveActivityIntent.
7.
Any other tool: omitted, control-process.
On Android every control is offered from Android 10 as a tile, but a tool known to start camera, screen or speech capture (control-capture). A press is the person's action (origin action) everywhere, and starts at most the two captures below:
•
a url: "intent": "open". The tile opens the app at the location, asking for the device credential if needed. On a cold app launch the URL is the launch location. On Android 14 and 15, a tap before the first PIN unlock after reboot can leave Quick Settings open without asking for the PIN. Unlock the device and tap the tile again.
•
a tool whose reach can start or restart a capture (the microphone, a recorder, or a capture its arguments decide): "intent": "foreground". A tile grants no microphone, so the tile opens the app, and the press runs once the app is in front, unlocked, drawn and its data ready. While it runs and the app shows, it may call getUserMedia for audio alone and startMediaRecorder, which the microphone starts for; anything else it or its tasks try is refused as for any background action, a camera, speech recognition and every permission prompt included. With the microphone's permission not yet granted, getUserMedia fails NotAllowedError, and the app asks in its own UI. So does a Live Activity the tool starts (startActivity), which Android shows as a notification: with notifications off it fails, and the app asks with requestNotificationPermission() (Recorder shows the request when a press finds them off). The control needs device.microphone (grant-needs); device.microphone-background keeps a take the person leaves running. The press runs at once or not at all (busy with other work running), and pressing another tile, leaving the app or the screen turning off ends it. On a Lock Screen that holds a credential, required and local ask for it first, then open the app; always is refused there. The press is dropped if the app is not ready within 20 seconds of the click.
•
any other tool: "intent": "tool". The press runs where it is, in a session booted with no view if none shows. On a Lock Screen that holds a credential, required and local ask for it and then press, leaving the person where they were; a swipe lock, or a keyguard Smart Lock trusts, asks for nothing. always runs there.
A tile is the system's, in its inactive appearance, with the row's title, its description beneath, and the Material glyph of its symbol (a .fill name without one takes its outline's; with none at all, the app's icon or the platform's default one). Its service is named by the control's kind, so a placed tile survives reordering the rows.
On iOS an offered control is a ControlWidgetButton in the widget extension, which an app with controls and no widgets or Live Activities also gets, linking no Exact runtime. Its WidgetKit kind is <app id>.control.<kind>. Its intent is compiled into both the app and the extension and is not discoverable, so Shortcuts and Siri do not list it. A URL control's intent opens the app and navigates there; on a cold launch the location is the launch location. A tool control's intent runs in the app's process, which iOS launches in the background if it is not running, and presses the control there; the extension's copy refuses without running anything.
A press enters only through a host's native entry, Runner::press_control, with the compiled control's kind and digest; on Apple, the tool door's exact_tool export takes it as op press, and the app's generated intent calls ExactTools.press; on Android, the tile's onClick calls Native.press. A tile that opens the app names a one-use record it left in the app's process, so a replayed or stale launch presses nothing. It is for tool controls (a host opens a URL control itself). The runner runs the tool as the person's action (origin action), refused unavailable when the installed control's digest is not the plan's, and busy while the same control's press waits or runs. Its authority ends when its caller cancels it, when it ends, or 10 seconds after it starts running; work it started runs on without it. The agent's call cannot press: it enters as tool whatever --door names.
state.controls lists each control with its tool or url, its digest and this binary's placement, as its bake recorded it: {"offered": [{"from": "18.0", "intent": "tool"}]} or {"omitted": "control-host", "why": …}. The web, which compiles no control, says absent:
text
bun scripts/agent.mjs ios --app <app> "state controls"
On an Android device or emulator, add a tile and press it from adb (<id>/dev.exact.app.ExactControl_<kind in UTF-8 hex>):
text
adb shell cmd statusbar add-tile <id>/dev.exact.app.ExactControl_7265636f7264
adb shell cmd statusbar click-tile <id>/dev.exact.app.ExactControl_7265636f7264
A qualification build (LLP 1126.004 §6d) offers on iOS what items 5 and 7 omit only for want of a device run, so the device run can be made: EXACT_QUALIFY_CONTROLS=1 bun host/apple/build.mjs <app> --ios --device --run. Such a placement carries the omission it lifts, {"offered": [{"from": "26.0", "intent": "tool"}], "qualifying": "control-process"}, so its compatibility id is never an ordinary build's; a bake with production trust (--release, --archive, a deploy) refuses the variable. A plain tool's intent then asks to run in the app (supportedModes = .background from 26, allowedExecutionTargets = .main from 27); a recording tool's ("intent": "recording") is an AudioRecordingIntent and a LiveActivityIntent, and while its press runs, the tool and the thens of its sends may call getUserMedia for audio alone and startMediaRecorder with the app not in front. A press never asks for the microphone: with its permission not yet granted, getUserMedia fails NotAllowedError. Recorder's record control is the device run's subject.
Is this helpful
Last updated November 30, 2026
Exact Docs