Query page elements
browser_queryFind elements in a live browser page using a CSS selector and return their text and safe attributes. Solves the problem of extracting structured data from dynamic web content without writing full scrapers.
Instructions
Return text and safe attributes for elements matching a CSS selector.
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": {
"selector": "<selector>"
},
"name": "browser_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matching elements to return | |
| tab_id | No | ||
| selector | Yes | CSS selector to match |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||