Automation API

Android device automation

API Reference

Complete reference for all automation interfaces, methods, and types

The Automation API is accessed through the global agent object. It provides comprehensive control over Android devices including touch gestures, text input, app management, file operations, and screen content access.

Entry Point
TypeScript
// The agent object is globally available in automation scripts
declare const agent: Agent;
interface Agent {
constants: AgentConstants; // Accessibility action constants
actions: AgentActions; // Device automation methods
utils: AgentUtils; // Utility functions & file operations
info: AgentInfo; // Device & automation metadata
control: AgentControl; // Automation control
display: AgentDisplay; // HTML overlay display
email: AgentEmail; // Email operations
notifications: AgentNotifications; // Notification handling
}

Agent Namespaces

Screen Content

Other