# Website access for agents

The starter serves semantic HTML and crawlable links. An assistant can read service descriptions, follow breadcrumbs, locate the inquiry form and distinguish a disabled form from an available action. WebMCP is a separate browser integration. This guide describes an optional implementation; the starter registers no browser tools.

Begin with a read-only task such as finding the URL for a service. Define a tool named find_service with a plain-language description, a query string input and an output containing a matching published title and canonical URL. Read from the same published collection as the human-facing directory. Return an empty result for an unknown service. Keep draft content and internal records out of results.

Implementation on a buyer site: check the target browser against the current Chrome documentation. Feature-detect navigator.modelContext before registering an imperative tool. Ship its reviewed client module under the site's own origin and update the current script policy and tests for that change. Preserve native links as the fallback. For inquiries, present the visible form for human review. Registration of a tool must never trigger a submission.

Acceptance: compare a known service result with its human-facing page, test an unknown service and a draft, repeat with the API unavailable, and verify that inspection alone sends no inquiry. Record browser version and results before advertising WebMCP support.

Prompt: Propose a read-only service lookup based on this site's published routes. Show input, output, fallback and browser test plan before changing scripts or CSP.

Reference: https://developer.chrome.com/docs/ai/webmcp

## Use this with Codex

> Read WEBMCP.md. Plan a read-only lookup using published services and describe how to test browser fallback and draft exclusion.
