> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobilerun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Shared State

> State available to custom tools during a Mobilerun task.

## Shared State

`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 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.