Skip to main content
The state API gives your extension read/write access to Aether’s public app state. Use it to prefill the composer, toggle agent mode, change the selected model, or manage Skill selections — all through a consistent path-based interface that works across Script Mods.

API reference

Supported state paths

state.get

Read the full public state object, or pass a path string to read a specific field. The resolved value is returned in the response’s value field:
Calling state.get() with no argument returns the entire public state snapshot in value. Passing a path string returns the value at that path in value.

state.patch

Write a single state path. patch is a convenience shorthand for a single-operation transaction:

state.transaction

Apply multiple state changes in one request. Operations are applied in array order:
Each operation defaults to op: "set" when op is omitted. Pass op: "remove" to clear a supported path. selected_model_key and screen require valid replacement values and cannot be removed:
Transactions apply operations in order. They provide a common mutation API, not database-level rollback across unrelated Android repositories. If an individual operation fails, earlier operations in the same transaction are not reversed.
Prefer state.transaction over multiple state.patch calls when you need to update several paths at once. Batching changes keeps related state updates in a single host request.