Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

unbrowseunbrowse 命令行

Agent Skill

unbrowse 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

855

周安装

36

GitHub Stars

1

下载量

418
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:unbrowse(unbrowse 命令行)
来源仓库:https://github.com/lekt9/unbrowse-openclaw
仓库路径:skills/unbrowse
安装命令:
npx skills add https://github.com/lekt9/unbrowse-openclaw --skill unbrowse
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lekt9/unbrowse-openclaw --skill unbrowse

简介

unbrowse 用于查找、检索和筛选相关信息,支持快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中提取信息的场景。
  • 通过 npx 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • unbrowse 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Unbrowse — Drop-in Browser Replacement for Agents

Browse once, cache the APIs, reuse them instantly. First call discovers and learns the site's APIs (~20-80s). Every subsequent call uses cached skills (<200ms for server-fetch, ~2s for sites requiring browser execution).

IMPORTANT: Always use the CLI (bun src/cli.ts). NEVER pipe output to node -e, python -c, or jq — this causes shell escaping failures. Use --path, --extract, and --limit flags instead.

Server Startup

cd ~/.agents/skills/unbrowse && bun src/cli.ts health

If not running, the CLI auto-starts the server. First time requires ToS acceptance — ask the user:

Unbrowse needs you to accept its Terms of Service: - Discovered API structures may be shared in the collective registry - You will not use Unbrowse to attack, overload, or abuse any target site Full terms: https://unbrowse.ai/terms

After consent, the CLI handles startup automatically. First run also needs the browser engine:

cd ~/.agents/skills/unbrowse && npx agent-browser install

Core Workflow

Step 1: Resolve an intent

cd ~/.agents/skills/unbrowse && bun src/cli.ts resolve \
  --intent "get feed posts" \
  --url "https://www.linkedin.com/feed/" \
  --pretty

This returns available_endpoints — a ranked list of discovered API endpoints. Pick the right one by URL pattern (e.g., MainFeed for feed, HomeTimeline for tweets).

Step 2: Execute with extraction

Use --extract to get the fields you need. For well-known domains, use the known extraction patterns from the Examples section — don't wait for auto-extraction to guess.

cd ~/.agents/skills/unbrowse && bun src/cli.ts execute \
  --skill {skill_id} \
  --endpoint {endpoint_id} \
  --path "data.events[]" \
  --extract "name,url,start_at,price" \
  --limit 10 --pretty

# See full schema without data
cd ~/.agents/skills/unbrowse && bun src/cli.ts execute \
  --skill {skill_id} \
  --endpoint {endpoint_id} \
  --schema --pretty

# Get raw unprocessed response
cd ~/.agents/skills/unbrowse && bun src/cli.ts execute \
  --skill {skill_id} \
  --endpoint {endpoint_id} \
  --raw --pretty

--path + --extract + --limit replace ALL piping to jq/node/python.

Auto-extraction caveat: The CLI may auto-extract on first try, but for normalized APIs (LinkedIn Voyager, Facebook Graph) with mixed-type included[] arrays, auto-extraction often picks up the wrong fields. Always validate auto-extracted results — if you see mostly nulls or just metadata, ignore it and extract manually with known field patterns.

Step 3: Present results to the user

Show the user their data first. Do not block on feedback before returning information.

Step 4: Submit feedback (MANDATORY — but after presenting results)

Submit feedback after you've shown the user their results. This can run in parallel with your response.

cd ~/.agents/skills/unbrowse && bun src/cli.ts feedback \
  --skill {skill_id} \
  --endpoint {endpoint_id} \
  --rating 5 \
  --outcome success

Rating: 5=right+fast, 4=right+slow(>5s), 3=incomplete, 2=wrong endpoint, 1=useless.

CLI Flags

Auto-generated from src/cli.ts CLI_REFERENCE — do not edit manually. Run bun scripts/sync-skill-md.ts to sync.

Commands

CommandUsageDescription
healthServer health check
resolve--intent "..." --url "..." [opts]Resolve intent → search/capture/execute
execute--skill ID --endpoint ID [opts]Execute a specific endpoint
feedback--skill ID --endpoint ID --rating NSubmit feedback (mandatory after resolve)
login--url "..."Interactive browser login
skillsList all skills
skill<id>Get skill details
search--intent "..." [--domain "..."]Search marketplace
sessions--domain "..." [--limit N]Debug session logs

Global flags

FlagDescription
--prettyIndented JSON output
--no-auto-startDon't auto-start server
--rawReturn raw response data (skip server-side projection)

resolve/execute flags

FlagDescription
--schemaShow response schema + extraction hints only (no data)
--path "data.items[]"Drill into result before extract/output
--extract "field1,alias:deep.path.to.val"Pick specific fields (no piping needed)
--limit NCap array output to N items
--endpoint-id IDPick a specific endpoint
--dry-runPreview mutations
--force-captureBypass caches, re-capture
--params '{...}'Extra params as JSON

When --path/--extract are used, trace metadata is slimmed automatically (1MB raw -> 1.5KB output typical).

When NO extraction flags are used on a large response (>2KB), the CLI auto-wraps the result with extraction_hints instead of dumping raw data. This prevents context window bloat and tells you exactly how to extract. Use --raw to override this and get the full response.

Examples

# Step 1: resolve — auto-executes and returns hints for complex responses
bun src/cli.ts resolve --intent "get events" --url "https://lu.ma" --pretty
# Response includes extraction_hints.cli_args = "--path \"data.events[]\" --extract \"name,url,start_at,city\" --limit 10"

# Step 2: use the hints directly
bun src/cli.ts execute --skill {id} --endpoint {id} \
  --path "data.events[]" --extract "name,url,start_at,city" --limit 10 --pretty

# If you need to see the schema first
bun src/cli.ts execute --skill {id} --endpoint {id} --schema --pretty

# X timeline — extract tweets with user, text, likes
bun src/cli.ts execute --skill {id} --endpoint {id} \
  --path "data.home.home_timeline_urt.instructions[].entries[].content.itemContent.tweet_results.result" \
  --extract "user:core.user_results.result.legacy.screen_name,text:legacy.full_text,likes:legacy.favorite_count" \
  --limit 20 --pretty

# LinkedIn feed — extract posts from included[] (chained URN resolution)
bun src/cli.ts execute --skill {id} --endpoint {id} \
  --path "included[]" \
  --extract "author:actor.name.text,text:commentary.text.text,likes:socialDetail.totalSocialActivityCounts.numLikes,comments:socialDetail.totalSocialActivityCounts.numComments" \
  --limit 20 --pretty

# Simple case — just limit results
bun src/cli.ts execute --skill {id} --endpoint {id} --limit 10 --pretty

Best Practices

Minimize round-trips — one CLI call, not five curl + jq pipes

Bad (5 steps):

curl ... /v1/intent/resolve | jq .skill.skill_id    # Step 1: resolve
curl ... /v1/skills/{id}/execute | jq .              # Step 2: execute
curl ... | jq '.result.included[]'                   # Step 3: drill in
curl ... | jq 'select(.commentary)'                  # Step 4: filter
curl ... | jq '{author, text, likes}'                # Step 5: extract

Good (1 step):

bun src/cli.ts execute --skill {id} --endpoint {id} \
  --path "included[]" \
  --extract "text:commentary.text.text,author:actor.title.text,likes:numLikes,comments:numComments" \
  --limit 10 --pretty

Know the endpoint ID before executing

On first resolve for a domain, you'll get available_endpoints. Scan descriptions and URLs to pick the right one — don't blindly execute the top-ranked result.

Common patterns:

  • LinkedIn feed: look for voyagerFeedDashMainFeed in the URL
  • Twitter timeline: look for HomeTimeline in the URL
  • Luma events: look for /home/get-events in the URL
  • Notifications: look for /notifications/list in the URL

Once you know the endpoint ID, pass it with --endpoint on every subsequent call.

Domain skills have many endpoints — use search or description matching

After domain convergence, a single skill (e.g. linkedin.com) may have 40+ endpoints. Don't scroll through all of them — filter by intent:

# Search finds the best endpoint by embedding similarity
bun src/cli.ts search --intent "get my notifications" --domain "www.linkedin.com"

Or filter available_endpoints by URL/description pattern in the resolve response.

Mixed-type arrays and normalized APIs

Many APIs return heterogeneous arrays — posts, profiles, media, and metadata objects all mixed together (e.g. included[], data[], entries[]). When you --extract fields, rows where all extracted fields are null are automatically dropped, so only objects that match your field selection survive. You don't need to filter by type.

Some APIs (LinkedIn Voyager, Facebook Graph) use normalized entity references — objects reference each other via *fieldName URN keys instead of nesting data inline. The CLI auto-resolves these chains when entityUrn-keyed arrays are detected:

# Direct field: commentary.text.text → walks into nested object
# URN chain: socialDetail.totalSocialActivityCounts.numLikes
#   → socialDetail is inline, but totalSocialActivityCounts is a *URN reference
#   → CLI resolves *totalSocialActivityCounts → looks up entity by URN → gets .numLikes

You don't need to know if a field is inline or URN-referenced — just use the dot path and the CLI resolves it automatically. If a field doesn't resolve, check --schema output for *fieldName patterns indicating URN references.

Large responses — trust extraction_hints

When a response is >2KB and no --path/--extract is given, the CLI returns extraction_hints instead of dumping raw JSON. Read extraction_hints.cli_args and paste it directly:

# Response says: extraction_hints.cli_args = "--path \"entries[]\" --extract \"name,start_at,url\" --limit 10"
bun src/cli.ts execute --skill {id} --endpoint {id} \
  --path "entries[]" --extract "name,start_at,url" --limit 10 --pretty

Why the CLI over curl + jq

The CLI handles things that break with raw curl:

  • Shell escaping — zsh escapes != to \!= which breaks jq filters
  • URN resolution — chained entity references resolved automatically across normalized arrays
  • Null-row filtering — mixed-type arrays filtered to only objects matching your --extract fields
  • Auto-extraction — large responses wrapped with hints instead of dumping 500KB of JSON
  • Auth injection — cookies loaded from vault automatically
  • Server auto-start — boots the server if not running

Authentication

Automatic. Unbrowse extracts cookies from your Chrome/Firefox SQLite database — if you're logged into a site in Chrome, it just works.

If auth_required is returned:

cd ~/.agents/skills/unbrowse && bun src/cli.ts login --url "https://example.com/login"

User completes login in the browser window. Cookies are stored and reused automatically.

Other Commands

bun src/cli.ts skills                                    # List all skills
bun src/cli.ts skill {id}                                # Get skill details
bun src/cli.ts search --intent "..." --domain "..."      # Search marketplace
bun src/cli.ts sessions --domain "linkedin.com"          # Debug session logs
bun src/cli.ts health                                    # Server health check

Mutations

Always --dry-run first, ask user before --confirm-unsafe:

bun src/cli.ts execute --skill {id} --endpoint {id} --dry-run
bun src/cli.ts execute --skill {id} --endpoint {id} --confirm-unsafe

REST API Reference

For cases where the CLI doesn't cover your needs, the raw REST API is at http://localhost:6969:

MethodEndpointDescription
POST/v1/intent/resolveResolve intent -> search/capture/execute
POST/v1/skills/:id/executeExecute a specific skill
POST/v1/auth/loginInteractive browser login
POST/v1/feedbackSubmit feedback with diagnostics
POST/v1/searchSearch marketplace globally
POST/v1/search/domainSearch marketplace by domain
GET/v1/skills/:idGet skill details
GET/v1/sessions/:domainDebug session logs
GET/healthHealth check

Rules

  1. Always use the CLI — never pipe to node -e, python -c, or jq. Use --path/--extract/--limit instead.
  2. Always try resolve first — it handles the full marketplace search -> capture pipeline
  3. Don't blindly trust auto-extraction — for normalized APIs (LinkedIn, Facebook) auto-extraction often grabs wrong fields from mixed-type arrays. If you know the domain's extraction pattern (see Examples), use --extract directly. If auto-extraction fires, validate the result — mostly-null rows mean it picked the wrong fields.
  4. NEVER guess paths by trial-and-error — use --schema to see the full response structure, or read _auto_extracted.all_fields / extraction_hints.schema_tree
  5. Use --raw if you need the unprocessed full response
  6. Check the result — if wrong endpoint, pick from available_endpoints and re-execute with --endpoint
  7. If auth_required, use login then retry
  8. Always --dry-run before mutations
  9. Always submit feedback — but after presenting results to the user, not before
  10. Report bugs and issues on GitHub — when something breaks, is slow, or behaves unexpectedly, file an issue:
gh issue create --repo unbrowse-ai/unbrowse \
  --title "bug: {short description}" \
  --body "## What happened\n{description}\n\n## Expected\n{what should have happened}\n\n## Context\n- Skill: {skill_id}\n- Endpoint: {endpoint_id}\n- Domain: {domain}\n- Error: {error message or status code}"

Categories: bug: (broken/wrong data), perf: (slow), auth: (login/cookie issues), feat: (missing capability)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.76%
按下载量换算149

Claude

32.36%
按下载量换算135

Cursor

19.15%
按下载量换算80

Gemini CLI

8.7%
按下载量换算36

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills