llms.txt Content
# BabelWrap
> The web, as an API, for your agents.
BabelWrap is a REST API and MCP server that lets AI agents interact with any website using natural language. Instead of CSS selectors or XPath, agents describe what they want in plain English ("click the Login button", "fill the email field", "extract all product prices"). BabelWrap translates these into real browser interactions and returns structured, LLM-readable JSON snapshots of every page.
## Who It's For
- AI agent builders (Claude, GPT, LangChain, LlamaIndex, custom agents)
- Backend developers who need web automation without Selenium/Playwright boilerplate
- Data teams extracting structured data from websites
## Core Concepts
### Sessions
A session is an isolated browser context with its own cookies, storage, and page state. Create one with POST /v1/sessions, interact with it, then close it when done. Sessions expire after 1 hour of inactivity.
### Actions
Actions are browser interactions: navigate, click, fill, submit, extract, scroll, etc. Every action is described in natural language and returns a structured snapshot of the page after the action completes.
### Snapshots
The core innovation. Every action returns a JSON snapshot with these fields:
- url: current page URL
- title: document title
- content: main readable text (up to 15,000 characters)
- inputs: all form fields with label, type, value
- actions: all clickable elements (buttons, links)
- forms: logical groupings of fields with submit buttons
- navigation: site navigation links
- alerts: error messages, success banners, warnings
- tables: structured table data with headers and rows
- lists: ordered and unordered list items
### Element Resolution
When you say "click the Login button", BabelWrap uses an LLM (Claude Haiku) to match your description to the correct element on the page. This means your automations survive DOM changes and site redesigns.
## Base URL
https://api.babelwrap.com/v1
## Authentication
All API requests require a