Skip to content

Latest commit

 

History

History

web-agents

Folders and files

README.md

Web Agents Demos

Basic Web Agent API demos for LLM and MCP server access.

Demos

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/

APIs Covered

  • LanguageModel.create() - LLM sessions
  • window.agent.requestPermissions() - Permission management
  • window.agent.run() - Autonomous agent tasks, including the person's installed MCP tools
  • document.modelContext.registerTool() / getTools() / executeTool() - A page's own tools (the WebMCP draft)
  • window.agent.chat.open() - Open your agent's chat on a page