Opens in a new tab
Stop Explaining to AI Which Button You Mean

Stop Explaining to AI Which Button You Mean

Do you also sometimes find yourself explaining to an AI agent that you want to change something on a website or a report that you made, or referring to something on another page you are browsing, and you end up describing it like “on this website, look at this thing”? It was happening to me quite a bit, so I built a small Chrome extension for it. You select an element, it copies its exact location, and you tell your agent what to do with it.

The problem: your own browser has no way to point at things

In Claude Code, if you are working in the built-in browser or with artifacts, you have these little tools to comment on elements and then send them to Claude. But when you are in your own browser, you don’t have that option.

So I created this little tool in the form of a Chrome extension that gives you these kinds of tools in any browser tab.

Select an element and copy its context for your AI agent

You select an element and it automatically copies its exact location and the URL. You paste it into Claude Code and then just say what exactly you want to do with it, instead of trying to explain where to find it in the first place.

This was the original idea of the tool.

Edit copy and leave comments right on the page

I also sometimes needed to do some final tweaks on copy, or quick changes. Honestly, it felt very stupid to be explaining to an AI agent that I want to change this and change it to that. I ended up writing more than if I had just changed it myself.

So if you choose the writing tool, you can write into any website or HTML document and change its copy. What you write isn’t saved anywhere, because I wanted this to be universal. It is not an editor for any particular system.

Where you can’t change something directly, you can just comment on it. You can go through the whole page uninterrupted and make your changes and comments.

The extension's toolbar over a web page, with an edited heading, a comment pinned to an image, and the Copy prompt bar showing 2 text edits and 2 comments

Copy the prompt and hand it to your agent

Once you are done changing the copy or adding your comments, you simply copy the prompt and bring it to your AI agent. It gives the agent exact instructions to make the changes you made, or the ones you requested through the comments.

When the agent is done, reload the page and your changes are applied.

Shortcuts: Alt to select, Shift+Alt for more options

I gave it a few more features. For example, even without activating the extension, if you hold Alt you are already selecting elements.

If you hold Shift+Alt, you get a little menu with more actions. For example, you can specify whether you are referring to just this one element or to all elements with the same class. You can also start editing or commenting from this menu.

How to install it in Chrome

You can either download it from my GitHub, agent-element-selector, or just get inspired and vibe code your own version with your own spin on it, based on what exactly you are doing.

Either way, this is how you install a browser extension that you have downloaded or created on your computer:

  1. Go to Manage Extensions in Chrome.
  2. Make sure Developer mode is toggled on.
  3. Click Load unpacked.
  4. Browse your files and select the folder where your extension is stored.

Just be careful: this doesn’t install the extension. It doesn’t copy it anywhere inside Chrome, it just uses the code from where you saved it. The code needs to stay there, so don’t load it from your Downloads folder and then delete it, because then it would stop working.

A small tool that saves me time

This is a small tool is saving me time in my workflow. There are some similar tools, but I found it beneficial to make my own that I can fully control.

 

Get it on GitHub: agent-element-selector

Jan Cerny, founder of JCweb.TECH
by Jan Cerny
I have been building and managing websites for over 10 years, focusing on security, scalability, and integrations with other systems.
Share this post

Related posts

view all