Skip to main content

browser-automation

Reliable, composable browser automation using minimal OpenCode Browser primitives.

来源信息

仓库
different-ai/agent-bank
最近来源活动
2026年1月13日 06:08
检测到的 SKILL.md 语言
英语
星标
254
Forks
45

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
browser-automation
description
Reliable, composable browser automation using minimal OpenCode Browser primitives.
license
MIT
compatibility
opencode
metadata
{"audience":"agents","domain":"browser"}
## What I do - Provide a safe, composable workflow for browsing tasks - Use `browser_query` list and index selection to click reliably - Confirm state changes after each action ## Best-practice workflow 1. Inspect tabs with `browser_get_tabs` 2. Open new tabs with `browser_open_tab` when needed 3. Navigate with `browser_navigate` if needed 4. Wait for UI using `browser_query` with `timeoutMs` 5. Discover candidates using `browser_query` with `mode=list` 6. Click, type, or select using `index` 7. Confirm using `browser_query` or `browser_snapshot` ## Selecting options - Use `browser_select` for native `<select>` elements - Prefer `value` or `label`; use `optionIndex` when needed - Example: `browser_select({ selector: "select", value: "plugin" })` ## Query modes - `text`: read visible text from a matched element - `value`: read input values - `list`: list many matches with text/metadata - `exists`: check presence and count - `page_text`: extract visible page text ## Opening tabs - Use `browser_open_tab` to create a new tab, optionally with `url` and `active` - Example: `browser_open_tab({ url: "https://example.com", active: false })` ## Troubleshooting - If a selector fails, run `browser_query` with `mode=page_text` to confirm the content exists - Use `mode=list` on broad selectors (`button`, `a`, `*[role="button"]`) and choose by index - Confirm results after each action
在 GitHub 查看