Tools¶
Observe¶
Almost all other tool calls have built-in observation via the interaction loop, but we also have a standalone observe tool that specifically performs just that action to get the AI agent up to speed.
Interactions¶
- π
tapOnsupports tap, double-tap, long press, and long-press drag actions. - π
swipeOnhandles directional swipes and scrolling within container bounds. - βοΈ
dragAndDropfor element-to-element moves. - π
pinchOnfor zoom in/out gestures. - π³
shakefor accelerometer simulation.
App Management¶
- π± Installed apps are exposed via the
automobile:appsresource with query filters. - π
launchAppstarts apps by package name (with optional clear-app-data support). - β
terminateAppforce-stops an app by package name. - π¦
installAppinstalls an APK. - π
getDeepLinksreads registered deep links/intent filters for an Android package.
Input Methods¶
- β¨οΈ
inputTextandimeActionfor typing and IME actions. - ποΈ
clearTextandselectAllTextact on the focused field. - π
pressButtonorpressKeyfor back/home/recent/power/volume.
Device Configuration¶
- π
rotatesets portrait or landscape. - π
openLinklaunches URLs or deep links. - π§°
systemTray,homeScreen, andrecentAppscontrol system surfaces. - π
postNotificationposts notifications from the app-under-test when SDK hooks are installed. - π
changeLocalizationsets locale, time zone, text direction, and time format in one call.
Navigation & Exploration¶
- πΊοΈ
navigateTonavigates to a specific screen using learned paths from the navigation graph. - π
exploreautomatically explores the app and builds the navigation graph by intelligently selecting and interacting with UI elements. - π
getNavigationGraphretrieves the current navigation graph for debugging and analysis.
Advanced Device Management¶
- π Device inventory and pool status are exposed via the
automobile:devices/bootedresource. - π
startDevicestarts a device with the specified device image. - β
killDeviceterminates a running device. - π§
setActiveDevicesets the active device for subsequent operations.
Testing & Debugging¶
- π§ͺ
executePlan(daemon mode only) executes a series of tool calls from a YAML plan content, stopping if any step fails. - π
criticalSection(daemon mode only) coordinates multiple devices at a synchronization barrier for serialized steps. - π©Ί
doctorruns diagnostic checks to verify AutoMobile setup and environment configuration. - π
bugReportgenerates a comprehensive bug report including screen state, view hierarchy, logcat, screenshot, and optional highlight metadata. - π
debugSearchdebugs element search operations to understand why elements aren’t found or wrong elements are selected. - πΈ
rawViewHierarchygets raw view hierarchy data (XML/JSON) without parsing for debugging. - ποΈ
highlightdraws visual overlays to highlight areas of the screen during debugging (Android only). - π
identifyInteractionssuggests likely interactions with ready-to-use tool calls (debug-only; enable the debug feature flag).
Performance & Monitoring¶
- π©
listFeatureFlagslists all available feature flags and their current states. - βοΈ
setFeatureFlagenables/disables feature flags for experimental features and performance tuning. - π¬
demoModeenables or disables demo mode with consistent status bar indicators for screenshots (action: "enable" | "disable").
Daemon & Session Management¶
- π Device pool status is exposed via the
automobile:devices/bootedresource. - Daemon management operations are exposed via the unix socket API (not MCP tools).