These APIs are restricted to system miniapps (Mentra AI today). A regular miniapp that calls them gets NOT_PERMITTED. They’re documented here for reference. To make your own miniapp callable, expose actions instead, see Actions.
System miniapps can discover other miniapps, control their lifecycle, and invoke the actions those miniapps expose.

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.