query_selector
Query a single element in a renderer page by CSS selector to get its tag name, text, attributes, and bounding rectangle.
Instructions
Query a single element by CSS selector in a renderer page. Returns tag name, text, attributes and bounding rect.
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": {
"sessionId": "<sessionId>",
"pageId": "<pageId>",
"selector": "<selector>"
},
"name": "query_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id from list_pages. | |
| selector | Yes | CSS selector to query. | |
| sessionId | Yes | Session id returned by launch_app. |