Agent Chat API Demo
Checking extension...
LLM: —
Tools: —
No session
💬

Web Agent API Chat Demo

This demo showcases the window.ai and window.agent Web Agent APIs. Toggle Tools to use MCP tools or Tab Context to include the current tab's content.

// Example: Create a text session
const session = await window.ai.createTextSession();
const response = await session.prompt("Hello!");

// Example: Run an agent with tools
for await (const event of window.agent.run({ task })) {
  console.log(event);
}
Type a message below and press Enter to send