query_selector
Query DOM nodes using a CSS selector and return tag, ID, class, and text summaries to inspect Electron app pages during debugging.
Instructions
Query DOM nodes with document.querySelectorAll and return tag/id/class/text summary
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": "query_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| selector | Yes | CSS selector | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. |