Choose your LLM. Choose your MCP servers. Choose your tools.
The Web Agent API (window.ai, window.agent, navigator.modelContext)
gives you the building blocks — every integration decision is yours.
Choose an LLM, pick your tools, build with the API
Interactive walkthrough — step through detecting the Web Agent API, requesting permissions, and making your first tool call.
Full-featured chat interface using window.agent.run() with
MCP tool integration, streaming responses, and citations.
Simple bookmarklet-style demo using window.ai.createTextSession()
to summarize the current page. Shows Chrome API compatibility.
Same summarizer but using the Chrome-compatible
window.ai.languageModel.create() API style.
Chat with your email inbox using window.agent.run() with
Gmail MCP tools. Setup wizard walks you through the process.
Drag-and-drop bookmarklet that injects a chat sidebar into any page. Works on any website to chat about the current content.
Demo showing how websites can integrate with the user's own
AI chatbot via <link rel="mcp-server"> and agent.chat.open().
Choose how the AI interacts with the page — click, fill, scroll, or observe
Practice click, fill, and select on a simple form.
Validate fields, advance between steps, and use waitForSelector.
Search Google, open multiple result tabs, and synthesize findings with AI using
browser.tabs.create() and browser.tab.readability().
Choose your agent topology — pipelines, parallel, or custom routing
window.ai, window.agent, and navigator.modelContext.
Harbor implements navigator.modelContext from the
W3C WebMCP proposal
— the emerging standard for pages to register JavaScript tools that AI agents can call.
Same API shape proposed by Google and Microsoft, available today.
Copy our starter guide into your project so the API, examples, and capabilities are in context. No Harbor clone required — just add the doc and point your AI at it.