Quick Start
Install Libretto and run your first browser automation in minutes.
CLI Reference
Every command, flag, and option — from
open to run to network.Library API
TypeScript APIs for workflows, extraction, recovery, and instrumentation.
Guides
Real-world use cases and automation concepts explained in depth.
What Libretto does
Inspect live pages
Run
npx libretto snapshot to capture a screenshot and HTML of any open page, analyzed by an LLM to identify selectors, interactive elements, and page state — without flooding your agent’s context window.Capture network traffic
Libretto records every network request during browser sessions. Use
npx libretto network to view them, then reverse-engineer site APIs to build direct, faster integrations.Record and replay actions
Perform a workflow yourself in the browser — Libretto records every click, fill, and navigation as structured action logs. Ask your agent to turn those actions into a reusable automation script.
Use cases
One-shot script generation
Ask your agent to explore a site and generate a complete automation script from scratch.
Interactive script building
Show Libretto a workflow by doing it yourself, then let your agent turn your actions into code.
Convert to network requests
Convert brittle UI automations into direct API calls that are faster and more reliable.
Debugging workflows
Reproduce failures, inspect live page state, and fix broken selectors interactively.
Key concepts
Automation approaches
Playwright UI, passive interception, in-browser fetch, or direct HTTP — when to use each.
Bot detection
Understand how sites detect automation and how to choose approaches that minimize risk.
Sessions and profiles
Manage named browser sessions and persist authenticated state across runs.