Problem
When I use Select element (element picker) in a Browser Tab inside Cursor, the selected HTML element is inserted into the Agent / Composer input — but always at the end of the prompt, not at the current cursor position.
This makes a common workflow painful:
- I start typing a message in the Composer (e.g. “Please fix the styling of ”).
- I place the cursor in the middle of the sentence.
- I switch to the Browser Tab and use Select element on a DOM node.
- The element reference is appended at the bottom of the prompt, not where my cursor was.
- I have to cut and paste the element chip manually to the right place — tedious and error-prone, especially when selecting multiple elements in one message.
The built-in Browser Inspector already creates the right kind of reference (a compact UI element chip, e.g. <span> #home-nav-scenari), but the insertion position is wrong for multi-part prompts.
Expected behavior
When Select element is used from a Browser Tab:
- Insert the UI element reference at the current caret/selection in the active Composer input.
- Preserve the existing cursor position when focus moves between the Browser Tab and the Composer.
- If the user has selected text in the prompt, optionally replace the selection or insert at caret (consistent with normal editor behavior).
- Do not move the caret to the end of the prompt before inserting (today this feels like a side effect of refocusing the Composer).
Why this matters
- Visual review workflows: “Change this button… and also this nav item…” requires multiple element picks in one message, each in context.
- Less friction: avoids cut/paste after every selection.
- Consistency: file editors insert at cursor; the Composer should behave the same for element references.
Environment
- Windows 11
- Cursor IDE (stable)
- Feature area: Browser Tab → Select element → Agent / Composer input
Thank you for your attention and for the great support from the Cursor team and community. I really appreciate the product and hope this small UX improvement can help others who review UI in the Browser Tab.
Best,
DL