User: "Go to https://news.ycombinator.com and take a screenshot"
AI will call:
1. navigate({ url: "https://news.ycombinator.com" })
2. screenshot({ fullPage: true })
提取数据
User: "Get all the links from the page"
AI will call:
1. get_links()
表单自动化
User: "Search for 'AI news' on the page"
AI will call:
1. type({ selector: "input[type='search']", text: "AI news" })
2. click({ selector: "button[type='submit']" })
自定义JavaScript
User: "Get the number of images on the page"
AI will call:
1. evaluate({ script: "return document.images.length" })
发展
# Build
npm run build
# Run in development
npm run dev