Simplex Client
Main client for AI-powered browser automation
The Simplex client is the main entry point for the SDK. It combines AI capabilities with browser automation through its integrated BrowserActor.
Constructor
Parameters
Your API key for authentication
Timeout in seconds for API requests
Maximum number of retries for failed requests
Properties
browser_actor
The integrated BrowserActor instance for browser automation. See Browser Actor for details.
Functions
find_element
Finds an element in a screenshot based on a natural language description.
Parameters
Natural language description of the element to find
Screenshot of the current screen
Returns
List of 4 integers representing the bounding box [x1, y1, x2, y2]
get_next_step
Gets the next step to complete a task based on current screenshot and history.
Parameters
Natural language description of the task to complete
Screenshot of the current screen
List of previous steps taken to complete the task
is_step_complete
Checks if a step is complete based on a natural language description.
Parameters
Natural language description of the step to check
Screenshot of the current screen
step_to_action
Converts a step description to a list of Simplex BrowserInteractions.
Parameters
Natural language description of the step to convert
Screenshot of the current screen
Returns
List of BrowserInteractions to complete the step
is_task_complete
Checks if a task is complete based on a natural language description.
Parameters
Natural language description of the task to check
Screenshot of the current screen