Click any element in Chrome and Pointer hands it to Claude Code, Codex or any MCP agent: the DOM, computed styles, a screenshot, and the file and line that render it.
No pasting HTML. No "the second blue button in the header card". The agent gets the exact element and where it lives in your code.
Something off? npx pointer-bridge doctor checks every link from browser to agent and prints the fix.
Tag, selector, visible text, trimmed HTML, key computed styles, ancestors and an optional cropped screenshot. Shift-click to pick up to ten elements in order.
The component chain and file, with a stated confidence. A wrong path is worse than none, so Pointer never guesses.
Type an instruction in the toast and it travels with the selection. No MCP? "Copy as prompt" puts a formatted block on your clipboard.
Pointer tells you when the agent actually read the selection, and what to do if it hasn't. No guessing whether it worked.
Pointer always sends grep-friendly hints. On top of that it maps to a component and file whenever your dev build exposes it.
| stack | how | you get |
|---|---|---|
| React 17–19 | fiber walk, _debugSource, creation stack | Component chain, file, line |
| Vue 2 & 3 | component instance, __file | Component chain, file |
| Svelte 4 & 5 | __svelte_meta | File, line, column |
| Angular | ng.getOwningComponent | Component names |
| Astro, inspector plugins | dev-plugin data-* attributes | File, line |
| Next.js routes | route file from the URL, labelled inferred | Page file hint |
| Anything else | window.__POINTER_SOURCE__ = (el) => … | Whatever you return |
MCP tool plus a prompt hook that delivers your selection automatically. Setup wires both.
Registered as an MCP server. Say "the selected element" and the agent fetches it.
A stdio server, or paste with "Copy as prompt" when there's no MCP at all.
npx -y pointer-bridge mcp
Host and Origin checks.Not yet. Setup unpacks the extension and opens the extensions page, so installing is one "Load unpacked". Works in Chrome, Edge and other Chromium browsers.
Yes for hints: selector, classes and text. Component and file mapping needs a dev build, since production builds strip that data, and Pointer says which confidence level you got.
No. Pointer only reads the element you click. Your agent makes any edits, through its own permission prompts.
Use "Copy as prompt". It puts the same context on your clipboard as a formatted block you can paste anywhere.
Yes. MIT licensed and open source.