The web was built for humans. What happens when we're no longer it's only users?
Something I've been thinking about lately is how much of web development revolves around understanding human behaviour.
Even when I'm working on my own projects, a considerable amount of time goes into deciding where a button should be placed, how a user would navigate between pages, or whether a particular interaction feels intuitive enough.
Recently, while reading about WebMCP, I started thinking about how different these considerations would be if the user interacting with a website wasn't necessarily a human.
We've been designing interfaces around the assumption that someone is sitting on the other side of the screen, looking at them. With AI agents becoming increasingly capable of interacting with websites, that assumption is becoming a little less straightforward.
To give a little context about WebMCP
WebMCP, short for Web Model Context Protocol, is an experimental web technology that allows websites to expose their functionality as structured tools that AI agents can discover and execute.
Google introduced an early preview of it in February 2026, and it's currently being developed through the Web Machine Learning Community Group.
What drew me towards it was how surprisingly reasonable the idea behind it is.
Let's say your favourite artist announces a concert in Delhi, and you ask an AI agent to find two tickets under ₹5,000 each, preferably with a decent view of the stage.
Depending on how the agent operates, it might open a ticket booking website, search for the artist, select the city, navigate through the available ticket categories, interpret the venue layout and check whether the tickets fit your budget.
All of this to access information and functionality that the website already has.
The agent just has to figure out how to access it through an interface that wasn't designed for it in the first place.
WebMCP essentially gives developers a way to make that functionality explicitly available to agents, reducing their dependence on interpreting the visual interface.
Looking at it from a developer's perspective
Taking the same concert booking example, imagine we already have functions within our application that retrieve upcoming concerts, available ticket categories and their respective prices.
With WebMCP, we could expose some of that functionality as tools.
A simplified implementation using its experimental JavaScript API would look something like this:
document.modelContext.registerTool({
name: "find_concert_tickets",
description: "Find available concert tickets based on artist, city and budget",
inputSchema: {
type: "object",
properties: {
artist: { type: "string" },
city: { type: "string" },
maxPrice: { type: "number" },
quantity: { type: "integer", minimum: 1 }
},
required: ["artist", "city", "maxPrice", "quantity"]
},
async execute({ artist, city, maxPrice, quantity }) {
return await findConcertTickets({
artist,
city,
maxPrice,
quantity
});
}
});
Here, findConcertTickets() represents the existing application logic responsible for retrieving available tickets.
The tool tells the agent what operation is available, what it does, which parameters it expects and how to execute it.
Instead of working out how to interact with multiple dropdowns and filters, a compatible agent could discover find_concert_tickets and provide the required inputs directly.
The website could expose other tools too, such as:
get_ticket_categoriesget_venue_layoutcheck_availabilityreserve_tickets
If the website provides structured information about seating sections and stage visibility, the agent could use that information to help narrow down the options as well.
Now, I know what you might be thinking. Does this mean double the effort for developers? As if building websites for humans wasn't enough, we now have to build them for AI agents too?
Well, I thought the same, but not necessarily. There's already an approach being explored to make this a little easier.
Apart from the JavaScript-based approach we just looked at, there's also a declarative approach that would allow developers to expose existing HTML forms as agent-accessible tools by adding a few attributes.
For instance, if our concert booking website already has a search form, we could potentially make that same form discoverable by an agent without having to write an entirely separate implementation.
The idea is to reuse as much of what we've already built as possible. There would still be some additional development effort, particularly for more complex interactions, but we wouldn't necessarily be building and maintaining two separate versions of the same website.
The first thing that came to my mind was APIs
If we're essentially exposing functions for another piece of software to consume, haven't we been doing this for years?
To an extent, yes.
REST APIs already allow applications to communicate with each other, and MCP provides a standardised way for AI applications to access external tools and resources.
What makes WebMCP different is its relationship with the browser and the existing webpage.
A WebMCP tool can operate within the application's client-side context, reuse existing frontend logic and interact with the current state of the page.
Going back to the concert example, imagine an agent helping you shortlist tickets while you're looking at the venue layout yourself. As the agent selects a particular section, you could potentially see that selection reflected on your screen.
Both of you would be interacting with the same application.
The tool itself might still make a REST API call internally. WebMCP doesn't eliminate the need for backend services; it provides another mechanism through which agents can access application functionality.
That distinction helped me understand why this is being explored as a browser technology rather than simply another API convention.
This made me think about frontend development a little differently
When building a React application, we're generally concerned with components, state management, accessibility, responsiveness and the overall experience of navigating through the application.
If something like WebMCP becomes widely adopted, developers might also need to consider which parts of their application should be discoverable and executable by agents.
A concert booking platform could have an interactive venue map for humans while exposing structured information about seating sections, prices and availability to agents.
Similarly, the same application could allow a person to select tickets manually or let an agent prepare a reservation based on their preferences.
Both interaction methods would need to work with the same application state and respect the same business rules.
For something like concert tickets, where availability can change within seconds, maintaining consistency between these interactions becomes particularly important. The backend would still need to handle concurrent requests, ticket reservations and inventory validation.
I don't think this necessarily makes frontend development less important. If anything, it introduces another set of considerations around how we structure application logic, separate it from presentation and manage interactions coming from different sources.
It also makes the idea of a user interface a little broader than what we usually associate it with.
And then there's the business side of it
This is probably the part I've found myself thinking about the most.
Think about all the promotional banners, sponsored listings and premium upgrades on a ticket booking website. They're designed around human purchasing behaviour. An agent instructed to find tickets under ₹5,000 might never even encounter them.
We've spent years optimising websites for search engines, studying ranking algorithms and competing for that first position on Google. But we're already seeing a change in what that position is worth.
Take Google's Gemini-powered AI Overviews. If the answer to your query is right there at the top of the page, how often do you actually scroll down to open a website anymore?
I find this particularly concerning for educational websites and independent blogs. Their content could be contributing to the answer you're reading without them receiving a single visit from you.
Ranking first is no longer the only consideration. Getting your content retrieved and referenced in AI-generated responses matters too. This is where concepts like Generative Engine Optimisation (GEO) and Answer Engine Optimisation (AEO) come in.
Now imagine a similar shift with AI agents. If five platforms sell tickets to the same concert, what makes an agent choose one over the others?
Businesses might eventually find themselves studying agent selection algorithms and developing optimisation techniques specifically for them. Clear tool descriptions, reliable responses, accurate pricing and ease of execution could become competitive advantages.
WebMCP doesn't define how agents rank websites, but I wouldn't be surprised if optimising for agent discoverability becomes a practice of its own.
Something I wouldn't overlook, though, is security
There's a considerable difference between letting an agent search for concert tickets and letting it purchase non-refundable tickets using your saved payment details.
Google is already exploring security concerns around WebMCP, including misleading tool descriptions and prompt injection through tool responses.
Developers would need to be particularly careful about permissions, input validation and user confirmation for sensitive actions. Making an operation easier to execute shouldn't mean making it easier to misuse.
A final thought
WebMCP is still experimental, and whether it becomes widely adopted remains to be seen.
But for all the conversations happening around AI changing how we build websites, I find the possibility of it changing who we build them for considerably more interesting.
Top comments (0)