Interactive examples showing how to use the Web Agent API
(window.ai and window.agent) to add AI capabilities to any website.
Basic LLM and MCP server access demos
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().
Active-tab interaction demos (click, fill, scroll, wait)
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().
Multi-agent coordination demos (A2A communication)
window.ai and window.agent APIs.
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.