Page Agent

Active
GitHub TypeScript MIT

Description

Page Agent is a JavaScript in-page GUI agent by Alibaba that controls web interfaces with natural language, enabling automated form filling, page navigation, and element interaction.

Key Features

  • In-page JavaScript GUI agent — no browser extension, Python, or headless browser required
  • Text-based DOM manipulation without screenshots or multimodal LLMs
  • Bring your own LLM — works with any OpenAI-compatible API
  • Optional Chrome extension for multi-page agent tasks across browser tabs
  • MCP Server (Beta) to control the agent externally via MCP protocol
  • One-line CDN integration for instant setup and evaluation

Use Cases

💡 SaaS AI copilot embedded directly in web products with zero backend rewrite
💡 Smart form filling for ERP, CRM, and admin systems — 20-click workflows in one sentence
💡 Accessibility layer for any web app via natural language voice commands
💡 Multi-page browser automation across tabs with Chrome extension
💡 MCP-enabled agent clients controlling browser interactions programmatically

Quick Start

npm install page-agent && import { PageAgent } from 'page-agent'; const agent = new PageAgent({ model: 'qwen3.5-plus', baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1', apiKey: 'YOUR_API_KEY' }); await agent.execute('Click the login button')

Related Projects