Writing

How to Actually Give a Web Page to AI

A URL is not content, and copy-paste is not the answer. A web page has to travel through an easily overlooked path before AI can use it as material.

While working on a browser extension recently, I kept running into a question that sounded simple: when a user says, “give this web page to AI,” what exactly have they given it?

The most obvious answer is a URL. But a URL is an address, not content. It tells the system where to look without saying what matters on the page.

The other answer is copy and paste. The user selects the article, puts it into an input box, and explains what they want. This works, but it is clumsy. Long material is tedious to move. Complex pages produce messy text. The user repeatedly switches between the browser and the AI product.

If AI is going to participate in real work, we cannot keep asking people to transport information by hand.

A URL is not context

A web page is usually obvious to a person. We can see the title, identify the article, and ignore the navigation, related links, and advertisements.

The system receives something else. A page may contain menus, scripts, hidden elements, comments, footers, sign-in dialogs, and repeated links. An article of a few thousand words can sit inside tens of thousands of characters of page content.

Giving all of it to a model does not mean the model has better context. Often it has only received more noise.

There has to be at least one transformation between a page and AI:

Web page
  → extract
  → clean
  → preserve useful structure
  → store as material
  → send the relevant part to AI

This looks like a data-processing problem, but the experience still depends on product judgment: what should remain, what should disappear, and whether the user understands what the system took from the page.

The whole page, or the selected part

An extension naturally suggests two actions: save the whole page or save only the text selected by the user.

The whole page provides more context but is usually dirtier. A selection is more precise but can lose the title, author, and surrounding argument.

There is no universally correct choice.

Someone reading a research report may want the complete article. Someone trying to explain one concept needs only a paragraph. On a video page, social post, or dynamic application, the useful material may not live in an ordinary article body at all.

I started to realize that “capture the page” is not one action. It includes a judgment by the user about the boundary of the material.

The most valuable part of an extension is not merely avoiding one copy operation. It lets the user decide, at the moment they encounter information, which part deserves to enter the next piece of work.

A page needs to become material first

Content pasted into an input box usually serves one conversation. When that conversation ends, it is difficult to find the content again, and the user cannot know whether a future AI task will see the same material.

We began experimenting with saving a page as an independent piece of material rather than temporary prompt text.

A saved item should retain a few simple facts:

  • which page it came from;
  • the original page title;
  • whether the user saved the whole page or a selection;
  • when the content was captured;
  • whether the user can inspect and reuse it later.

These details sound basic, but they change the character of the product.

When the page is only a block of text in a prompt, what the AI does with it is difficult to follow. When it becomes material that can be selected again, the user begins to build a collection of sources that can participate in more than one task.

That seems more useful than simply making prompts longer.

Cleaning content is harder than capturing it

Obtaining HTML is not difficult. Turning it into stable, readable content is the troublesome part.

Websites have radically different structures. Some expose a clean article body; others depend heavily on client-side rendering. A page may be an article, product page, video, or social post. Even ordinary text can contain button labels, duplicated headings, and meaningless line breaks.

Files present a similar problem. Markdown, JSON, XML, and plain text have different structures. Splitting everything at a fixed length can cut through an object, sentence, or paragraph. The content enters the system, but its meaning is damaged.

We have recently spent time on these less visible problems: removing irrelevant page elements, preserving headings and paragraphs, making material in different languages discoverable, and avoiding splits that destroy the original structure.

None of this looks as exciting as a new model. It directly determines whether the AI receives a document or a collection of characters that happened to come from the same URL.

Capturing content is not the end

Even after a page has been cleaned and saved, the problem is not finished.

A user may accumulate dozens or hundreds of items. Sending all of them to AI every time would be slow and unnecessary. The product needs to let the user choose, and the system needs to find the parts that matter to the current question.

It is easy to go too far in the other direction: the system chooses everything automatically, while the user no longer knows which material supported the answer.

I increasingly prefer to keep that relationship visible. Users do not need to understand the implementation of search or vectors. They should be able to see what they saved, what was used this time, and whether generated content can lead back to the original source.

Without that connection, even a correct answer is difficult to continue working with. The user cannot inspect it or recombine useful material into another result.

An extension is not another entrance

At first, it is easy to think of a browser extension as a shortcut into the product: the user can access AI without opening another page.

After building it for a while, I think it is closer to a bridge.

The browser is already where people find information. Articles, search results, videos, community discussions, and online tools live there. If an AI product waits in front of an empty input box, it requires the user to translate the work already in progress into a prompt.

An extension can shorten that distance. The current page is the material. A selection carries part of the user’s intent. Saving turns a moment of browsing into something that can be used again.

This does not mean AI should read everything a person sees. The closer the browser sits to real work, the clearer its permissions and boundaries must be. The user should decide what is read, when it is saved, and whether only the selection is processed.

Convenience cannot depend on uncertainty about what the system took.

What are we actually giving the AI?

Looking at it now, “give this web page to AI” contains at least four different tasks:

  1. Find the useful content inside the page.
  2. Turn it into a form that can be processed further.
  3. Preserve where it came from and what the user selected.
  4. Find and reuse the relevant part in a future task.

A URL only locates the start of this path. Copy and paste leaves everything else to the user.

I do not yet know whether browser extensions will become a primary surface for AI products or remain a supporting tool. One thing is becoming clearer: the missing piece between AI and real work is often not another, more intelligent answer. It is a path that allows material to enter the system naturally.

What we give AI should not be only a link.

It should be material with a clear boundary, a visible source, and a life beyond the current prompt.

Article activity

readscomments

Discussion

Comments

Questions, disagreements, and useful additions are all welcome.

Leave a comment

Comments publish immediately and can be deleted from this browser.

A privacy-friendly human check runs when you publish.