highlight_elements
Outline every element matching a CSS selector with a colored overlay to verify what the selector catches on a screenshot. Each call clears previous overlays; remove=true clears without adding.
Instructions
Outline every element matching a selector with a coloured overlay, to see on a screenshot what a selector actually caught. Each call clears the overlays left by the previous one instead of stacking them, and remove=true clears without adding. The overlays are injected DOM nodes: a reload or a navigation drops them, and they sit above the page without altering its layout or its own styles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Any CSS color for the overlay label | rgba(255,0,0,0.3) |
| label | No | Show tag.class (WxH) label | |
| border | No | CSS border shorthand, e.g. "2px solid red" | 2px solid red |
| remove | No | Remove previously injected highlights instead of adding | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| selector | No | CSS selector; ">>>" pierces shadow DOM. Every match is outlined |