browser-automation
Original:🇺🇸 English
Translated
Reliable, composable browser automation using minimal OpenCode Browser primitives.
4installs
Added on
NPX Install
npx skill4agent add different-ai/opencode-browser browser-automationTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →What I do
- Provide a safe, composable workflow for browsing tasks
- Use list and index selection to click reliably
browser_query - Confirm state changes after each action
Best-practice workflow
- Inspect tabs with
browser_get_tabs - Open new tabs with when needed
browser_open_tab - Navigate with if needed
browser_navigate - Wait for UI using with
browser_querytimeoutMs - Discover candidates using with
browser_querymode=list - Click, type, or select using
index - Confirm using or
browser_querybrowser_snapshot
Selecting options
- Use for native
browser_selectelements<select> - Prefer or
value; uselabelwhen neededoptionIndex - Example:
browser_select({ selector: "select", value: "plugin" })
Query modes
- : read visible text from a matched element
text - : read input values
value - : list many matches with text/metadata
list - : check presence and count
exists - : extract visible page text
page_text
Opening tabs
- Use to create a new tab, optionally with
browser_open_tabandurlactive - Example:
browser_open_tab({ url: "https://example.com", active: false })
Troubleshooting
- If a selector fails, run with
browser_queryto confirm the content existsmode=page_text - Use on broad selectors (
mode=list,button,a) and choose by index*[role="button"] - Confirm results after each action