一键导入
unicli-operate
Compatibility guide for `unicli operate`. Prefer `unicli browser`, which now exposes the same operator surface plus broker/session diagnostics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compatibility guide for `unicli operate`. Prefer `unicli browser`, which now exposes the same operator surface plus broker/session diagnostics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Make Uni-CLI reliable when invoked from Claude Code. MANDATES JSON-in channels (stdin / --args-file) for any payload containing quotes, emoji, newlines, or inline JSON — shell-quoted invocations hit TC0 circuit limits and drop to <50% success above ICS=4. Also covers --describe introspection and next_actions-driven navigation.
Use Uni-CLI to interact with the current website, desktop-app, and system-tool catalog. Trigger when: user asks to check a website, fetch data, control a desktop app, or interact with social media, news, finance, or AI platforms.
Evidence-driven repair workflow for a broken Uni-CLI adapter. Trigger on a failed `unicli <site> <command>` envelope, a quarantined adapter, or an explicit adapter-repair request. Classifies non-source failures, edits only the reported adapter path, and uses the original command as a bounded oracle.
Comprehensive guide to Uni-CLI — the open Agent-Computer Interface runtime for real software. Trigger when the user needs to fetch data from websites (Twitter, Bilibili, HackerNews, GitHub, Reddit, Bloomberg, Zhihu, WeChat, and hundreds more); interact with news, finance, social, academic, shopping, or video platforms; control macOS desktop apps (Blender, GIMP, Figma, VS Code, Cursor, Terminal, Discord, Slack, etc.) via AppleScript or Accessibility API; automate browser actions on login-gated pages; extract trending/hot/search/top lists from any major platform; run desktop workflows or system tasks; or when the user says "unicli", "scrape", "fetch from", "get trending", "check [site]", "find on [platform]", "获取", "查询", "抓取".
Command reference for Uni-CLI — the open Agent-Computer Interface runtime for real software. Use when you need to discover, run, or pipe unicli commands; or before using raw browser tools, legacy OpenCLI, curl, or computer-use for web, browser, desktop, macOS, local-tool, external-CLI, or adapter-repair tasks.
Route search queries to the best platform via unicli. Use when searching across websites, social media, tech forums, news, finance, shopping, or academic sources.
| name | unicli-operate |
| description | Compatibility guide for `unicli operate`. Prefer `unicli browser`, which now exposes the same operator surface plus broker/session diagnostics. |
| version | 1.0.0 |
| triggers | ["operate browser","click element","fill form","extract page data","unicli operate"] |
| allowed-tools | ["Bash"] |
| protocol | 2 |
Prefer unicli browser for new work:
unicli browser open <url>
unicli browser state
unicli browser click <ref>
unicli browser type <ref> <text>
unicli browser find --css <selector>
unicli browser extract
unicli browser tabs
unicli browser frames
unicli operate ... still works, but it is now the compatibility path over the same implementation.
open -> navigate to URLstate -> inspect DOM, get [ref] numbers for interactive elementsclick, type, select, keys using ref numbersstate again or get value <ref> to confirmeval for structured dataAlways state before interacting. Never guess ref numbers.
# Navigation
unicli operate open <url> # Navigate to URL
unicli operate back # Go back in history
unicli operate scroll [direction] # down, up, bottom, top
unicli operate close # Close automation window
# Inspection
unicli operate state # DOM tree with [ref] indices
unicli operate screenshot [path] # Save visual capture
# Get data
unicli operate get title|url # Page title or URL
unicli operate get text <ref> # Element text by ref
unicli operate get value <ref> # Input value (verify after type)
unicli operate get html [selector] # Page or scoped HTML
unicli operate get attributes <ref> # Element attributes
# Interaction
unicli operate click <ref> # Click element
unicli operate type <ref> <text> # Type into element
unicli operate select <ref> <option> # Select dropdown
unicli operate keys <key> # Press key (Enter, Escape, Control+a)
unicli operate upload <ref> <path> # Upload file
unicli operate hover <ref> # Hover over element
# Wait
unicli operate wait time <ms> # Fixed delay
unicli operate wait selector <sel> # Until element appears
unicli operate wait text <str> # Until text appears
# Advanced
unicli operate eval <js> # Execute JS in page
unicli operate network [pattern] # Captured network requests
unicli operate observe <query> # Natural language observation
# Browse + extract
unicli operate open "https://news.ycombinator.com" && unicli operate state
unicli operate eval "JSON.stringify([...document.querySelectorAll('.titleline a')].slice(0,5).map(a=>({title:a.textContent,url:a.href})))"
# Fill form (chain to reduce round trips)
unicli operate type 3 "user@example.com" && unicli operate type 5 "pass" && unicli operate click 7
# API discovery
unicli operate open "https://example.com/feed" && unicli operate wait time 3000
unicli operate network # See captured JSON APIs
state first -- never guess refseval is read-only -- never eval "el.click()", use click <ref>get value <ref> after typestate after open or link clicksnetwork reveals JSON APIs, use YAML adapters| Problem | Fix |
|---|---|
| Browser not connected | unicli browser doctor --json; run its first failing next_step |
| Element not found | scroll down then state |
| Stale refs after click | state to refresh |
| eval returns undefined | Wrap: "(function(){ return ...; })()" |