Actions
Perform lower level actions on the page using natural language.
Agentic actions
click
Click on an element on the page using a natural language description.
Natural language description of the element to click.
Raises ValueError if the API request fails or if the API key is not set.
If you need to upload or download files during a click, you can use the click_and_upload or click_and_download actions.
exists
Check if an element exists on the page.
Natural language description of the element to check.
A tuple containing:
- exists (bool): Whether the element exists.
- reasoning (str): The reasoning behind whether the element exists.
Raises ValueError if the API request fails or if the API key is not set.
hover
Hover over an element on the page using a natural language description.
Natural language description of the element to hover over.
Raises ValueError if the API request fails or if the API key is not set.
scroll_to_element
Scroll to an element on the page using a natural language description.
Natural language description of the element to scroll to.
Raises ValueError if the API request fails or if the API key is not set.
Non-agentic actions
goto
Navigate to a specific URL.
The URL to navigate to.
Raises ValueError if the API request fails or if the API key is not set.
type
Type text into an input field using a natural language description.
The text to type into the input field.
Raises ValueError if the API request fails or if the API key is not set.
press_enter
Press the enter key on the keyboard.
Raises ValueError if the API request fails or if the API key is not set.
scroll
Scroll the page by a specified number of pixels.
The amount of pixels to scroll by.
Raises ValueError if the API request fails or if the API key is not set.
wait
Wait for a specified amount of time.
The amount of time to wait in milliseconds.
Raises ValueError if the API request fails or if the API key is not set.
Raises ValueError if the API request fails or if the API key is not set.