ToolsIntegrations
browserAgent
Puppeteer-backed browser — goto, click, fill, read, screenshot, wait. For agents that need to interact with JS-rendered pages.
import { browserAgent } from '@agentskit/tools'
import puppeteer from 'puppeteer'
const browser = await puppeteer.launch({ headless: 'new' })
const page = await browser.newPage()
const runtime = createRuntime({
adapter,
tools: [...browserAgent({ page })],
})#Sub-tools
| Name | Purpose |
|---|---|
browserGoto | Navigate to a URL |
browserClick | Click a selector |
browserFill | Type into an input |
browserRead | Extract visible text from the page |
browserScreenshot | Capture PNG buffer |
browserWait | Wait for selector or timeout |
Bundled: browserAgent(config).
#Config
type BrowserAgentConfig = {
page: BrowserPage // Puppeteer Page (or any matching shape)
timeoutMs?: number
screenshotPath?: string
}#Example — site QA agent
const runtime = createRuntime({
adapter,
systemPrompt: 'Click through the signup flow and screenshot each step. Report errors.',
tools: [...browserAgent({ page })],
})#Safety
Headless browsers are powerful — wrap in mandatory sandbox to restrict allowed domains and block credentials leaks.
#Alternatives
- firecrawl — prefer when you only need static content extraction.
- reader — single-URL, no interaction.
- fetchUrl — no JS rendering, no cost.
#Related
Explore nearby
- PeerIntegrations
20+ ready-made connectors for the services agents actually need. Each follows the same contract — install, config, execute — and ships granular sub-tools alongside a bundled set.
- Peergithub
GitHub REST v3 — search issues, create issues, comment. Pairs with HITL for ship-gating bots.
- PeergithubActions
GitHub Actions — list runs and trigger workflow_dispatch events.