camofox_query_selector
Query the live DOM with a CSS selector to return element details or a specific attribute, enabling targeted inspection without raw evaluate_js.
Instructions
Query a CSS selector in the live DOM and return its element details or a specific attribute. Use this for targeted inspection without writing raw evaluate_js. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.
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": {
"tabId": "<tabId>",
"selector": "<selector>"
},
"name": "camofox_query_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID from create_tab | |
| selector | Yes | CSS selector to query | |
| attribute | No | Optional attribute name to return instead of the full element payload |