click
Click interactive elements in an open tab by their reference marker (e.g., e42) from the latest snapshot. Use for links, buttons, checkboxes, and form submit buttons.
Instructions
Click an interactive element in an open tab, by its ref.
The ref is an [eN] marker (like e42) from the tab's latest read_tab snapshot. Use this for links, buttons, checkboxes, and to submit a form that has a submit button. To submit a form that has no button, type into the field with submit=True, or press_key(tab_id, "Enter").
Args: tab_id: The handle from open_tab. ref: The element ref to click, e.g. "e42".
Returns: JSON with the resulting url and fresh ref count. Refs renumber after the click, so call read_tab again before your next action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |