Browser use

From kailiang0120/monaw · View interactive version

Browser use is an AI agent skill from the GitHub repository kailiang0120/monaw. Browser automation in the user's own Chrome through the Monaw extension (pages, snapshots, clicking, typing, screenshots), plus read-only page fetching.

How to use this skill

Skill file

Use these tools for website fetching and browser automation tasks.

Tools:

Workflow (observe -> decide -> act -> verify):

  1. mcp__chrome-devtools__list_pages to see open tabs. Reuse a relevant tab with select_page; otherwise new_page or navigate_page with a full http(s) URL. Pass the pageId from list_pages to page tools.
  2. Use the accessibility snapshot returned by opening or navigating the page to get element uids. Call mcp__chrome-devtools__take_snapshot when there is no current snapshot or the page has changed further.
  3. If a control is ambiguous or a form fails, use mcp__chrome-devtools__inspect_element with its uid to read attributes, labels, visibility, value, validation errors and nearby elements. A specific CSS selector can inspect elements omitted from the accessibility tree. Use selectors grounded in observed page attributes; multiple matches are an error. This is read-only and does not require custom JavaScript.
  4. Act with click, fill, fill_form (preferred for several independent form fields), type_text, press_key, hover, drag, or handle_dialog. Identify the target from its role, name, label, and nearby text, never from position alone. Actions return an updated snapshot by default; use includeSnapshot: false only when that observation is unnecessary. Click and fill automatically scroll and wait for the target to be enabled, unobstructed and stable; filling also waits for read-only fields to unlock. The default readiness budget is 5 seconds (timeout can extend it to 30 seconds); fill_form shares the budget across its fields. Batch independent fields, but keep dependent fields and submission separate.
  5. fill and fill_form read each field back by themselves: action_outcome.status is verified when the field holds the value, failed with the observed value when the page changed or rejected it, and executed for password fields, which are never read back. For other actions, pass expected_effect when you know the result to look for; otherwise status stays executed, which only means the input was sent. Verify using the snapshot returned by the action or wait. Do not immediately call take_snapshot again when that result already answers the question. Call take_snapshot again to verify only when no current snapshot was returned or the page changed further. Existing nodes keep their uid across snapshots; navigation or replacement makes them stale.

Rules:

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.