Urgent.News

What's breaking now, across hundreds of outlets.

AI

How Much of an Application Should an AI Agent See

A native route-by-route WebMCP test explores page-scoped tools, role-aware discovery, workflow entry, and the limits of using tool count as evidence.

How Much of an Application Should an AI Agent See

The author of this account explores how much of an application an AI agent can see and interact with when using WebMCP tools. They examine two separate applications: an Events list and an Event editor, both built using React and TypeScript. While both applications share certain features, such as optimistic revisions, command receipts, and policy findings, they have distinct object identities and operation sets.

The key insight is that a narrow interface, with tools tailored to specific workflows and tools, provides better visibility and control over the application's state and operations. By registering tools only after necessary information is known and using abort signals for cleanup, the editor becomes an integral part of the contract. This approach ensures that the editor can accurately reflect the current context and respond to user actions appropriately.

The author emphasizes that the boundary between a visible workflow, precise schema, authorized actor, and handler bound to the same object is crucial. This boundary should not be determined by a magic tool-count threshold but rather by the relationship between these elements. The author warns against treating tool visibility as authority, as WebMCP's current specification emphasizes semantic annotations and cross-origin exposure controls. These mechanisms help agents understand tool availability but do not grant permission.

Ultimately, the author stresses that the application must still perform rigorous checks, such as verifying the authenticated actor, object access, current revision, and operation validity. Even when a narrower interface limits the WebMCP surface, a broader browser agent can still actuate ordinary buttons. The key takeaway is that the application must maintain a way into the workflow, regardless of the tool visibility.

Rewritten by urgent.news; may contain errors โ€” check the original.

Source: hackernoon.com

Read the original at hackernoon.com โ†’

More from HackerNoon on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in AI

More from Wednesday, 2 December 2026 โ†’