AI agents are already clicking through your site β and failing on your buttons and forms. Latch exposes your search, cart, and contact forms as WebMCP tools an agent can actually use. No server. No rewrite.
<script src="https://latch.tools/latch.js" defer></script>
Drop it before </body>. Zero dependencies Β· ~6 KB Β· degrades silently where WebMCP isn't present.
It reads your page (read-only) and registers the actions an agent needs β nothing else.
Finds your search box, types the query, and submits β so an agent can look things up.
Detects "Add to cart / Buy now" controls and clicks them on the agent's behalf.
Maps your contact / booking / signup fields into a tool an agent can fill and send.
Surfaces your main nav links so an agent can move around the site reliably.
Read-only discovery. If WebMCP isn't there, Latch does nothing and never breaks your page.
One static script. No MCP server to host, no API keys, no build step.
This page runs Latch on itself. Below is exactly what an AI agent now sees. Try the demo search and contact form β they're real, and Latch turned them into tools.
The script is free and open source forever. Pay only if you want the hosted dashboard that shows what agents actually do on your site.
Analytics is opt-in and metadata-only: add data-key to your script tag and Latch reports tool name, outcome, and page path β never form contents, query strings, or PII. No key, and Latch makes zero network calls.