Shared State
MobileAgentState stores information about the current run. Custom tools can read it through ctx.shared_state.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
State available to custom tools during a Mobilerun task.
MobileAgentState stores information about the current run. Custom tools can read it through ctx.shared_state.
| Field | Description |
|---|---|
step_number | Current execution step |
platform | Active device platform |
formatted_device_state | Current screen and UI elements |
current_package_name | Current app package |
action_history | Actions already performed |
action_outcomes | Success or failure of each action |
agent_memory | Facts saved by the Manager or FastAgent during this run |
custom_variables | Values passed through MobileAgent(variables=...) |
finished | Whether the run has finished |
success | Whether the run succeeded |
Was this page helpful?