Libretto readonly

From saffron-health/libretto · View interactive version

Libretto readonly is an AI agent skill from the GitHub repository saffron-health/libretto. Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.

How to use this skill

Skill file

How Libretto Read-Only Works

Working Rules

Commands

`connect`

libretto connect http://127.0.0.1:9222 --read-only --session failed-job-debug

`pages`

libretto pages --session failed-job-debug

`snapshot`

`readonly-exec`

Helpers

Standard JS globals console, URL, Buffer, setTimeout, and setInterval are also available.

Examples
libretto readonly-exec "return page.url()" --session failed-job-debug
libretto readonly-exec "return await page.getByRole('heading').first().textContent()" --session failed-job-debug
libretto readonly-exec "return await page.frames()[1]?.getByRole('heading').textContent()" --session failed-job-debug

# HTTP GET inspection
echo "const r = await get('https://api.example.com/status'); return await r.json()" \
  | libretto readonly-exec - --session failed-job-debug

# Scroll down to inspect below-the-fold content
libretto readonly-exec "await scrollBy(0, 500)" --session failed-job-debug

`close`

libretto close --session failed-job-debug
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.