Skip to content

MCP Resources

In addition to its 39 tools, Android Pilot MCP exposes a small set of MCP Resources — read-only, URI-addressable data that a client can fetch directly, without making a tool call. Resources are a good fit for state a client wants to read (and maybe re-read, or subscribe to) rather than an action to perform.

URIMIME TypeDescription
android://devicesapplication/jsonCurrently connected Android devices and emulators (equivalent to adb devices -l)
android://avdsapplication/jsonAndroid Virtual Device names available on this machine
android://logcat/{deviceId}text/plainLast 200 lines of logcat output for a specific device
android://uidump/{deviceId}text/xmluiautomator XML dump of the current UI hierarchy for a specific device

Returns a JSON object with a devices array, each entry containing serial, state, and any additional properties adb reports (e.g. model, product, transport_id). If the underlying adb devices call fails, the resource returns an empty array with an error field instead of throwing.

Returns a JSON object with an avds array of AVD names, parsed from avdmanager list avd.

A resource template — substitute {deviceId} with a device serial (e.g. android://logcat/emulator-5554) to fetch that device’s recent logcat buffer as plain text. Output is truncated to the same byte-accurate limit used by the logcat_read tool.

Also a resource template. Substitute {deviceId} with a device serial to get a fresh uiautomator XML dump for that device. Internally this triggers a dump on the device, reads it back, and deletes the temporary file — the same flow as the ui_dump tool, exposed as a resource for clients that prefer resource semantics.

Use a resource when you just want to read current state (which devices are connected, what’s in logcat right now). Use the equivalent tool (device_list, logcat_read, ui_dump, etc.) when you need filtering, parameters, or a one-off snapshot embedded directly in a tool result. Both read from the same underlying adb/avdmanager calls, so the data is consistent either way.

  • MCP Prompts — pre-built multi-step workflows that call tools on your behalf
  • Tools Overview — the full 39-tool reference