Basic Web Agent API demos for LLM and MCP server access.
| Demo | Description | Path |
|---|---|---|
| Getting Started | Interactive walkthrough of the Web Agent API basics | getting-started/ |
| Page Summarizer | Simple page summarization using LanguageModel.create() |
summarizer/ |
| Time Agent | Simple MCP time tool demo | time-agent/ |
| Bring Your Own Chatbot | A shop page that opens your agent's chat with one agent.chat.open() call: no chat UI of its own |
bring-your-chatbot/ |
LanguageModel.create()- LLM sessionswindow.agent.requestPermissions()- Permission managementwindow.agent.run()- Autonomous agent tasks, including the person's installed MCP toolsdocument.modelContext.registerTool()/getTools()/executeTool()- A page's own tools (the WebMCP draft)window.agent.chat.open()- Open your agent's chat on a page