跳到正文
FunCoding

interceptor-desktop

Drive native apps on this computer via interceptor desktop *: element trees, background click/type/keys/drag/scroll, window screenshots and capture, clipboard, files, PDF, OCR and local vision, speech, local AI, monitor/replay, overlays, vault secrets, and Electron or Chromium app web contents via interceptor desktop cdp. Check interceptor desktop capabilities first: every operation reports whether it works on this computer and why not. Use for native apps, window control, and system UI. Not for content inside browser pages (use interceptor-browser).

Star
659
最近提交
2026年11月29日

.agents/skills/interceptor-desktop/SKILL.md

在 GitHub 上查看

Interceptor Desktop

Agent-operator skill for the native surface of Interceptor on this Windows computer. interceptor desktop <family> ... drives native applications through the interceptor-desktop provider, which uses UI Automation and Win32. For content inside a browser tab load interceptor-browser instead. Agent-operator skill for the native surface of Interceptor on this Linux computer. interceptor desktop <family> ... drives native applications through the interceptor-desktop provider, which uses AT-SPI and the compositor. For content inside a browser tab load interceptor-browser instead.

This computer is not a Mac. Mac and iPhone commands refuse here with macos/ios commands require macOS, and their skills are not installed. Where other text mentions them, use this skill.

This installed skill is self-contained. Packaged users have only the skill directory beside the install.

Fast Path

interceptor status                                  # 1. "mode: full" and "desktop provider: installed"
interceptor desktop capabilities                    # 2. One row per operation: effective, reason, provider, limits
interceptor desktop apps                            # 3. Running apps as "[pid] name"
interceptor desktop open "<name>"                   # 4. Tree + windows of a running app (does not raise it)
interceptor desktop find "Submit" --app "<name>"    # 5. Elements by name, each with a ref and a frame
interceptor desktop act <ref>                       # 6. Press the element, no focus change
interceptor desktop act <ref> "hello"               # 7. Set its text, no focus change

Four things to know before the first command:

  • --app takes the name exactly as apps prints it (powershell, explorer). Another spelling fails with no target app found or input requires exactly one matching top-level window. --pid <pid> is exact.
  • --app takes the name exactly as apps prints it (gjs, org.gnome.Nautilus). Another spelling fails with no target app found or input requires exactly one matching top-level window. --pid <pid> is exact.
  • Refs are long strings (e0809...0257). Copy them whole. Every read returns new ones, so use the latest and read again on stale_reference.
  • A reply with effectRequiresObservation: true means delivered, not confirmed. Read the target again before the next step. act returns the fresh tree for you.
  • Password fields read as •••. That is correct. Do not retry for the value.

The One Rule

Ask the computer before you claim or try anything. interceptor desktop capabilities is the source of truth for what works on this machine. interceptor desktop --help lists only the commands this build has for this OS, and the tables below name what is missing; whether a listed command works here still depends on its capability row.

Read each row like this:

Row saysDo this
effective: trueUse it. provider names what does the work and limits lists the conditions on the target.
effective: false, reason says the model downloads the first timeRun the command once to start the 2.8 GB download, then follow interceptor desktop ai status until it prints available: true.
effective: false, reason names an engine or service this build does not shipNot available. Tell the user what is missing. Do not install or configure anything unless they ask.
present: falseThe package or program it needs is not installed. reason names it.
No row, or desktop <family> is not implemented by this host providerThis computer has no such family. Stop.

Never tell the user a command works because the help lists it. Say it works when its row is effective: true, or after you ran it.

Background First

The user is on this computer too. Input goes to the target window without activating it, and the cursor stays where it is. Only interceptor desktop app activate <name> and interceptor desktop open <name> --activate exist to move focus. Use them when the user asks for the app to come forward, never to make your own work easier.

Go down this list and stop at the first route that works:

  1. Refs. act, click <ref>, type <ref> "text", value, action, menu. They work through the app's accessibility elements.
  2. A window. click X,Y --app <name>, type "text" --app <name>, keys "Control+L" --app <name>, scroll, drag. X,Y use the same coordinates as the frame values from find and windows. The reply shows background: true with cursorUnchanged or focusUnchanged. Add --window <id> (from windows --app <name>) when the app has several windows.
  3. Pixels. screenshot --app <name> and vision text --app <name> when the app exposes no elements.

Known limits:

  • An app can expose an empty tree. open still lists its windows. Use routes 2 and 3.
  • A keys chord that holds Ctrl, Alt or the Windows key reaches only the window that is already in front. For a background window it refuses with background_unavailable, because Windows apps read the physical modifier keys. Use type, value, action or menu instead. A single key or a Shift chord works in the background.
  • type "text" --app <name> with no ref refuses when that window has not had a focused control yet. Pass the control's ref.
  • app launch on a Store app starts it through the activation manager and replies activated: true, so it can come forward.
  • Background pointer and key delivery is qualified on Hyprland 0.56.1 with native Wayland windows, and keys takes one key plus modifiers. On another compositor read the click and keys rows first.
  • Run from the signed-in desktop session. From an ssh shell or a service the provider is out of reach, and commands answer requires the logged-in user's interactive session; Session 0 is not supported.
  • Run from the signed-in desktop session. From an ssh shell or a service the provider is out of reach, and commands can fail with a bare No such file or directory.

Full procedure with the replies to expect: workflows/drive-app-in-background.md.

What Does Not Exist Here

These commands do not work on this OS in this build. interceptor desktop --help leaves them out.

Filled at build time from shared/desktop-support.json with this OS's no rows.

What Works In Part

Filled at build time from shared/desktop-support.json with this OS's partial rows.

What the operating system fills in, what ships with the install, and how results differ from the Mac's: references/availability.md.

Electron And Chromium Apps

Web contents of an Electron or Chromium app go through interceptor desktop cdp, not the element tree:

interceptor desktop cdp discover                              # Running Electron/Chromium apps and their debug-port state
interceptor desktop cdp connect <port> --host 127.0.0.1       # Attach to an app started with --remote-debugging-port; returns a contextId
interceptor desktop cdp targets --context <contextId>
interceptor desktop cdp raw Runtime.evaluate '{"expression":"6*7","returnByValue":true}' --context <contextId>
interceptor desktop cdp detach --context <contextId>

Use the context ID returned by connect. A second endpoint showing the same hostname gets a port suffix. If the generated IDs or an explicit --app name are occupied, choose another name or detach the holder first.

cdp launch <app> --port N relaunches the app and refuses without --confirm. On this OS, cdp launch and cdp app attach have only been tested for their refusals, not against an installed Electron app.

Settings

The INTERCEPTOR_* variables a reason names are read by the provider when the user signs in. Setting them in a terminal does not reach it. Set them as user environment variables (setx NAME value), then sign out and back in. The INTERCEPTOR_* variables a reason names are read by the provider when the user logs in. Setting them in a terminal does not reach it. Put them in ~/.config/environment.d/interceptor.conf, one NAME=value per line, then log out and back in.

The Full install updates the way Sparkle updates a Mac: once a day it checks for a newer release and opens its update window, and nothing installs until someone clicks. To update when asked, run interceptor update, then interceptor desktop find "Install Update" --app interceptor-desktop and interceptor desktop click <ref>; when the window shows Ready to Install, find and click Install and Relaunch. Interceptor restarts while it installs. interceptor update status shows the last check and install. INTERCEPTOR_AUTO_UPDATE=off, set the same way, stops the daily checks. The Full install updates the way Sparkle updates a Mac: once a day it checks for a newer release and opens its update window, and nothing installs until someone clicks. To update when asked, run interceptor update, then interceptor desktop find "Install Update" --app interceptor-overlay and interceptor desktop click <ref>; when the window shows Ready to Install, find and click Install and Relaunch. Interceptor restarts while it installs. interceptor update status shows the last check and install. INTERCEPTOR_AUTO_UPDATE=off, set the same way, stops the daily checks.

Recovery Reflexes

You seeDo this
no target app found, input requires exactly one matching top-level window, capture requires one matching accessible applicationUse the name from apps exactly, or --pid. Several windows: add --window <id>.
open answers new Linux application launch requires an absolute executable pathThe name matched no running app, so open tried to launch it. Use the name from apps, or app launch <id>.
stale_referenceRead again and use the new ref.
unsupported_targetThe element or app does not expose what the verb needs. Use the window route or pixels.
background_unavailableNo background route for that request. Read the message; it names the alternative.
timeout_unknown_outcomeDo not replay. Read the target first, then decide.
not_installed, present: falseThe row names the missing package. Report it.
An AI command refuses and reports download progressinterceptor desktop ai status. Retry when it prints available: true.
no_interactive_sessionYou are outside the desktop session.
A command fails with the provider unreachable, then works again a minute laterSomeone may have clicked Install and Relaunch in the update window. Run the command again; interceptor update status shows lastInstallVersion.

When To Switch Surfaces

If the target is inside a browser page (DOM, network, tabs, forms), load interceptor-browser.

If the task is research across many sources, load interceptor-research.

Do Not Default To Troubleshooting

  • User wants a task done in an app on this computer: run Interceptor commands.
  • User wants Interceptor fixed, installed, or explained: that is a separate task. Ask before diving into install state.

相似的 Skill

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills203k近 7 天新增 3,333 个 star