Documentation menu
Documentation

Browser tools

Give an agent a sandboxed browser tool set without hand-writing every binding.

One runtime helper

Importing ayjnt/browser signals code generation to add the Browser Rendering, Worker Loader, AI, and compatibility configuration needed by Cloudflare’s browser tools.

example
import { browserTools } from "ayjnt/browser";

const result = await generateText({
  model,
  messages,
  tools: browserTools(this),
});

Local endpoint

When a Browser binding is unavailable locally, pass a CDP URL for a Chromium instance. Browser tools are agent-runtime capabilities; they are different from Bun host tools.