browser
Playwright browser automation — navigate, read, and interact with web pages using text snapshots and ref-based targeting. Supports keyboard, dialogs, file…
от malue-ai★ 37 звёзд на GitHub
Установить browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Browser Automation
Playwright-driven browser tool for web page interaction. Text-snapshot-first: reads pages as structured text, acts on elements by ref ID — no coordinate guessing, no screenshots needed.
Login sessions persist — cookies and localStorage are saved to a dedicated profile directory. Users only need to log in once per site.
When to Use
- browser tool: Web pages in a browser (forms, dashboards, search results, billing pages)
- observe_screen + peekaboo: Native desktop apps (Finder, Calendar, TextEdit, Numbers)
Do NOT use peekaboo for browser content. Do NOT use browser tool for native macOS apps.
Core Workflow
1. navigate → open URL
2. snapshot → read page as text, get element refs [e1], [e2], ...
3. click/type/select/press_key → act on elements by ref
4. snapshot → verify result
Always snapshot before acting. Never guess refs — they change on each snapshot.
Actions Reference
Navigation
navigate — Open a URL
browser(action="navigate", url="https://example.com")
→ {title: "Example", url: "https://example.com"}
go_back / go_forward — Browser history
browser(action="go_back")
→ {title: "Previous Page", url: "..."}
browser(action="go_forward")
→ {title: "Next Page", url: "..."}
Page Reading
snapshot — Read page content (PRIMARY)
browser(action="snapshot")
→ Page: Example Dashboard
URL: https://example.com/dashboard
Interactive elements (12):
[e1] button: Submit
[e2] textbox: Search...
[e3] link: Documentation
[e4] combobox: Select department
[e5] checkbox: Remember me
Use this to understand the page. Returns text with ref IDs.
screenshot — Capture page image (RARE)
browser(action="screenshot")
→ {path: "/tmp/browser_xxx.png"}
browser(action="screenshot", filename="output.png")
→ {path: "output.png"}
Only use when snapshot text is insufficient (e.g., analyzing visual layout or images).
Element Interaction
click — Click an element by ref
browser(action="click", ref="e1")
→ {clicked: "e1"}
browser(action="click", ref="e1", double_click=true)
→ {clicked: "e1"} # double-click
type — Type text into a field
browser(action="type", ref="e2", text="quarterly report", clear=true)
→ {typed: "quarterly report", ref: "e2"}
browser(action="type", ref="e2", text="search term", submit=true)
→ {typed: "search term", ref: "e2"} # presses Enter after typing
clear=true: Replace existing text (like Ctrl+A then type)submit=true: Press Enter after typing (for search fields, login forms)
fill — Clear and fill text (reliable form filling)
browser(action="fill", ref="e1", text="2026-02-09")
→ {filled: "e1", text: "2026-02-09"}
Use fill instead of type when you need to replace existing field content.
select — Choose dropdown option
browser(action="select", ref="e4", text="Engineering")
→ {selected: "Engineering", ref: "e4"}
press_key — Press keyboard key
browser(action="press_key", key="Enter")
browser(action="press_key", key="Escape")
browser(action="press_key", key="Tab")
browser(action="press_key", key="ArrowDown")
browser(action="press_key", key="Control+a")
browser(action="press_key", key="Meta+c")
Supports: Enter, Escape, Tab, Backspace, Delete, Space, ArrowUp/Down/Left/Right, and modifier combos like Control+a, Meta+v, Shift+Tab.
hover — Hover over an element
browser(action="hover", ref="e3")
→ {hovered: "e3"}
Triggers dropdown menus, tooltips, and other hover-activated UI.
drag — Drag element to another
browser(action="drag", source_ref="e2", target_ref="e7")
→ {dragged: "e2", to: "e7"}
scroll — Scroll page or element
browser(action="scroll", scroll_y=500) # down 500px
browser(action="scroll", scroll_y=-300) # up 300px
browser(action="scroll", ref="e5", scroll_y=200) # within element
Dialogs & Files
handle_dialog — Handle alert/confirm/prompt dialogs
Dialogs are auto-dismissed by default. Call handle_dialog before the action that triggers the dialog to control the behavior.
# Accept the next confirm dialog
browser(action="handle_dialog", accept=true)
browser(action="click", ref="e8") # triggers the confirm
# Dismiss the next dialog
browser(action="handle_dialog", accept=false)
# Accept a prompt dialog with text
browser(action="handle_dialog", accept=true, prompt_text="my answer")
To see what dialogs have appeared recently, the response includes recent_dialogs.
upload_file — Upload files
Two patterns:
# Pattern A: One-step — provide ref to click the file input and upload
browser(action="upload_file", ref="e5", paths=["/path/to/file.pdf"])
# Pattern B: Two-step — click first, then upload
browser(action="click", ref="e5") # triggers file chooser
browser(action="upload_file", paths=["/path/to/file.pdf", "/path/to/image.png"])
Utilities
wait_for — Wait for conditions
`
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл browser?
Playwright browser automation — navigate, read, and interact with web pages using text snapshots and ref-based targeting. Supports keyboard, dialogs, file upload, JS evaluation, console/network debugging, and PDF export. Login state persists across sessions. Use when user wants to open a URL, fill a web form, scrape page content, or operate any website that requires clicking/typing.
Как установить скилл browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…