aether.host.invoke() provides direct access to Android-side operations that aren’t yet covered by the state API or service registry. Use it for app-specific tasks like sending messages, opening screens, or executing Alpine commands.
API signature
Host methods reference
| Method | Purpose |
|---|---|
app.getState | Read settings, sessions, draft, Skills, and runtime UI state |
app.setDraftInput | Replace the composer text |
app.appendDraftInput | Append text to the composer |
app.sendMessage | Set optional text and submit, queue, or steer |
app.newChat | Start a new draft conversation |
app.selectSession | Select a session by ID |
app.openScreen | Open "chat" or "settings" |
app.pauseGeneration | Pause the current generation |
app.setReasoningEffort | Change reasoning effort level |
app.setAgentMode | Toggle Agent Mode on or off |
app.setModel | Select a model by key |
app.notify | Show an Android toast notification |
settings.get | Read settings and providers |
settings.patch | Patch supported settings |
runtime.execute | Execute an arbitrary Alpine/Termux command |
Code examples
Prefer the state API (
aether.state.patch) and service registry (aether.services.invoke) for state mutations where supported. Use host methods for operations not yet covered by those APIs.