Using the selector
- Activate the selector — Use the keyboard shortcut or click the selector button in the toolbar
- Hover over elements — Elements highlight as you move your mouse
- Click to select — Click an element to attach it. You can select multiple elements before sending a message
- Send your message — The selected elements appear as attachments in the chat input
What the agent receives
When you select a DOM element, the agent gets:- HTML structure — The element’s outer HTML and its position in the DOM tree
- Computed styles — Key CSS properties as computed by the browser
- Bounding box — Position and dimensions on the page
- Selector path — A CSS selector that uniquely identifies the element
Tips
- Be specific — Select the most specific element relevant to your request. Selecting a button is better than selecting the entire page.
- Combine with text — Pair your element selection with a natural language instruction: “Make this button larger and change its color to blue.”
- Multiple selections — Select several elements to show the agent a pattern or to request changes across multiple components.