Cursor: point at the element instead of guessing the file
Cursor asks you to name the file with @. When the element comes from a shared component, you cannot know which one — so select it instead.
Cursor handles @Files well. The trouble starts one step earlier: naming the file. You are looking at a rendered page, not at a file tree — and the element in front of you may come from PricingCard.tsx, from Card.tsx, or from a wrapper three levels above the one you would guess.
The file you need has no name you can type
The DOM tells you the tag and a class list. It does not tell you the import graph — which component produced this node, or whether the component you are looking at is a variant of a shared base. So the prompt becomes a description: "the second card in the pricing row", and the agent has to turn that description back into a path.
What happens when you send a screenshot
Cursor reads it and picks a plausible file. In a small project the guess is usually close. In a shared component it is expensive: you revert the change, then explain where the element actually lives — which is the information you did not have at the start.
Select the element, get the path
- Open the project you are already running in Curxor's built-in browser. React and Vue dev builds both resolve.
- Select the element, and annotate the region if the change is visual.
- Copy the message: it carries the file and line, the tag, the class string as the DOM has it, the component source, and the annotated screenshot.
Where it fits in each mode
Agent
Multi-file work is where a wrong starting file costs the most, and where an @ you cannot fill in hurts. This is the mode that gains the most from element-level context.
Chat
Single-element questions — "why is this gap 24 and not 16" — usually need the class string and the component, nothing more. The selection gives both without you opening a file.
Cmd+K
Inline edit works on whatever is selected in the editor, so it already knows the file. What it does not know is which of the three cards on the page you meant. Element context answers that question, not the file one.
What this is not
It does not change Cursor's settings, add a model, or replace its agent. It supplies the input Cursor already asks for: a location instead of a description. The edit, the diff and the review stay exactly where they were.
If you want the reasoning behind the split — screenshots for appearance, element context for location — visual context for AI agents is the longer version.
Download Curxor for macOS and try it on the next element you cannot name.
Questions this raises
Does this replace Cursor's own @ references?
No — it fills them in. The @ file you cannot type, because you do not know the path, is exactly what the selection produces.
Does it work in Agent mode, Chat and Cmd+K?
The context is plain text, so it goes anywhere a prompt goes. Cursor is also a built-in agent in Curxor, so the message can be handed over directly instead of pasted.
Which projects can it resolve source in?
React and Vue projects, including Next.js, Vite and Webpack dev builds. Parsing runs locally; code never reaches Curxor's servers.