SDK Reference
Tools
Tools
Abstract base class for all tools. This class provides a common interface for all tools to implement.
Tools.get_state
Get the current state of the tool.
Tools.tap_by_index
Tap the element at the given index.
Tools.swipe
Swipe from the given start coordinates to the given end coordinates.
Tools.input_text
Input the given text into a focused input field.
Tools.back
Press the back button.
Tools.press_key
Enter the given keycode.
Tools.start_app
Start the given app.
Tools.take_screenshot
Take a screenshot of the device.
Tools.list_packages
List all packages on the device.
Tools.remember
Remember the given information. This is used to store information in the tool’s memory.
Tools.get_memory
Get the memory of the tool.
Tools.complete
Complete the tool. This is used to indicate that the tool has completed its task.
describe_tools
Describe the tools available for the given Tools instance.
Arguments:
tools
- The Tools instance to describe.
Returns:
A dictionary mapping tool names to their descriptions.