chrome_get_interactive_elements
Retrieves interactive elements from the current browser page, optionally filtered by CSS selector, text, or element type, to support automated browser interaction and inspection.
Instructions
Get interactive elements from the current page. Returns a list of elements with their properties, if the list is empty, that means the tool failed to find any interactive elements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"envId": "<envId>"
},
"name": "chrome_get_interactive_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envId | Yes | Environment ID for the browser environment to operate. | |
| selector | No | CSS selector to filter interactive elements. Takes precedence over textQuery if both are provided. | |
| textQuery | No | Text to search for within interactive elements (fuzzy search) | |
| elementType | No | Type of interactive elements to retrieve (e.g. button, link, input) | all |
| includeCoordinates | No | Include element coordinates in the response (default: true) |