Discover and control miniapps
session.miniapps lists installed miniapps and starts or stops them.
Invoke an action
session.actions.invoke calls an action another miniapp exposed via
session.actions.handle. It headless-wakes the target if it’s stopped, runs the
handler, and returns the result.
invoke() rejects with { code, message } where code is one of:
A thrown handler in the target surfaces its own error message to the caller.
The action descriptor returned by
session.miniapps.list() includes an optional
outputSchema, which describes the structured result for result-aware callers.
Privileged device controls
Wi-Fi ADB (Mentra Live)
session.glasses.setWifiAdbState toggles wireless debugging on Mentra Live.
The preference is persisted on the glasses and reapplied at boot (default
off). Non-system callers get NOT_PERMITTED.

