page-agent
Installation
SKILL.md
PageAgent Browser Enhancement Skill
Injects alibaba/page-agent v1.5.6 PageController into web pages via the browser tool's evaluate action. Gives you superior DOM manipulation compared to basic browser actions.
Key Advantages Over Basic Browser Tool
- cursor:pointer heuristic — detects clickable elements even without semantic tags
- Full event chain — mouseenter→mouseover→mousedown→focus→mouseup→click (not just
.click()) - React/Vue compatible input — uses native value setter to bypass framework interception
- contenteditable support — proper beforeinput/input event dispatch
- Indexed elements —
[N]<tag>format for precise LLM-directed operations - Incremental change detection —
*[N]marks new elements since last step
Usage Flow
Step 1: Inject PageController into the page
Use the CDP injection script (handles the 72KB library injection):