BrowserTask
Complete complex browser tasks requiring multi-step, multi-tool coordination.
Available Tools
| Tool | Capability | Use When |
|---|---|---|
| Search tools | Find trusted URLs | Target website unknown |
| webfetch | Fetch page content/HTML | Static pages, parse links |
| agent-browser | Browser interaction | Click, fill forms, login, dynamic content |
| curl | Download files | File URL is known |
Core Principles
- •Search first, never guess URLs - Use search tools to get trusted URLs
- •Right tool for the job - agent-browser for interaction, curl for download
- •Extract link then download - agent-browser cannot download files directly; extract href then use curl
Standard Download Pattern
code
Search/known URL -> agent-browser navigate to download page -> get download button href -> curl download
Key commands:
bash
# Get download button's link agent-browser get attr @download-button href # Or use webfetch to get HTML and parse webfetch <url> --format html
agent-browser Key Points
For detailed commands, load agent-browser skill. Common usage:
- •
agent-browser open <url>- Open page - •
agent-browser snapshot -i- Get interactive elements - •
agent-browser click @e1- Click element - •
agent-browser get attr @e1 href- Get link attribute
Important Notes
- •agent-browser is slow to start; use webfetch/curl when possible
- •Search results are more reliable than guessed URLs
- •Always use curl for file downloads, never attempt with agent-browser