Logo Ui Control

Ui Control

Tổ chức
dcc-mcp
ui-control

Kỹ năng hạ tầng để quan sát giao diện ứng dụng, thực hiện thao tác trong phạm vi xác định, chờ và ghi lại chuỗi thao tác CUA khi công cụ DCC có kiểu dữ liệu xác định không thể truy cập giao diện cần thiết. Dùng kỹ năng này khi người dùng yêu cầu CUA, UI Control, dcc-cua hoặc tự động hóa giao diện ứng dụng trong DCC. Ưu tiên dùng công cụ DCC có kiểu dữ liệu xác định trước và CDP cho trình duyệt; dùng backend dcc-cua độc lập cho ứng dụng gốc.

Add to TypingMind

Tổng quan

Nhà phát hànhdcc-mcp
Kho mãdcc-mcp-core
Tên kỹ năngui-control
Sao
74
Bản fork
7
Tệp đi kèm
26
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 26 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được dcc-mcp công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ui Control trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/dcc-mcp/dcc-mcp-core/tree/main/python/dcc_mcp_core/skills/ui-control
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-core.git /tmp/dcc-mcp-core
mkdir -p .claude/skills
cp -r /tmp/dcc-mcp-core/python/dcc_mcp_core/skills/ui-control .claude/skills/ui-control
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ui Control trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ui Control ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ui Control với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

DCC UI Control

The Agent Host owns user authorization. Core never enables the standalone Host's legacy native confirmation popup, including when menu invocation is allowed. Missing authorization remains a typed refusal; do not auto-approve or retry it through another input route. For bounded task authorization, use the project-owned DCC-CUA task bridge and its exact target/scope checks.

Use application UI automation only when a typed DCC skill, host API, or adapter script reports unsupported or capability_missing. Policy denial, user interruption, authentication, and desktop unavailability are stop conditions.

Backend order

  1. Use a typed DCC-MCP tool whenever one exists.
  2. For Chrome, Edge, launchers, and embedded webviews with DevTools access, set DCC_MCP_UI_CONTROL_BACKEND=chrome (or edge) and use CDP.
  3. For native application UI, set DCC_MCP_UI_CONTROL_BACKEND=cua and use the standalone dcc-cua CLI/Host.
  4. mock is an explicit deterministic test backend only; production defaults to dcc-cua and never silently falls back to mock automation.

Core does not package an automation Host in its own release assets. The official CLI installer reconciles the independently released dcc-cua companion; verify it with dcc-mcp-cli components status dcc-cua or repair it with dcc-mcp-cli components ensure dcc-cua --yes. For custom layouts, install dcc-cua 0.4.0 or newer separately. Core probes the configured DCC_MCP_INSTALL_DIR, the platform's standard dcc-mcp bin directory, versioned standalone installs, and then PATH; set DCC_MCP_CUA_BINARY to an absolute executable path only for a custom location. Core validates dcc-cua manifest, ensures the shared Host, and keeps one persistent JSONL bridge per active UI session. It prefers shared-memory image transport when the native Core extension is present and otherwise uses bounded binary attachments.

The CUA Host owns native accessibility, capture, banner/border/cursor markers, input scheduling, Escape interruption, browser CDP routing, and platform adapters. Core owns only DCC policy, normalized tool results, audit events, and artifact publication.

An adapter may opt into an integrity-pinned, owned public-MCP pixels_only runtime through server-owned UiControlRuntimeOptions. This preserves the default shared JSONL path for other servers. The owner must bind both PID and HWND; tool arguments cannot select a binary, transport, or action grant. See owned pixels MCP before using that mode.

Owned pixels mode can separately permit explicit secondary popup observations through the owner-only allow_native_capture_popup_keyboard ceiling. Select one through eight exact HWNDs from the root's fresh native capture inventory with snapshot(native_capture_popup_window_handles=[...]). The main image keeps its honest redactions; each popup has a separate labeled PNG and full native provenance. This permits one unheld keyboard action to the original main root within five seconds, subject to native coverage, identity and foreground checks. It grants no pointer input or popup rebinding. Every attempt consumes that root observation; re-observe instead of retrying. See the reference for the complete boundary and cleanup requirements.

Exact application scope

DccServerBase injects its trusted DccServerOptions process/window context into every in-process ui-control call. Dedicated or custom servers may override that automatic binding with:

  • DCC_MCP_UI_CONTROL_PROCESS_ID
  • DCC_MCP_UI_CONTROL_WINDOW_HANDLE
  • optional DCC_MCP_UI_CONTROL_PROCESS_NAME
  • optional DCC_MCP_UI_CONTROL_WINDOW_TITLE

Request arguments may narrow that scope but cannot widen it. Native mouse and keyboard input are enabled inside that exact scope by default; operators can disable them with DCC_MCP_CUA_ALLOW_RAW_INPUT=false. Semantic accessibility actions remain preferred. For a multi-window process, pass a window_title that narrows the trusted PID to one window. The Host resolves that title once, then returns and enforces an exact window capability; use an explicit handle if the title still matches more than one window.

A redundant process_name may accompany a trusted PID or HWND as metadata or an additional constraint. It never replaces the exact native binding: a process name or title by itself cannot mint a capability, and a process name that conflicts with an operator-trusted name fails with invalid_target.

Multiple agents may control different applications concurrently. Each logical session has its own grant, window capability, observation fences, and bridge. The shared Host isolates session state, serializes raw input, and broadcasts Escape as the operator stop signal.

Observe, act, verify

Passive temporary capture is an independent owner-granted route: ui_control__act(action="get_window_state"), then ui_control__capture_preparation(operation="begin", window_state_id=..., lifetime_ms=...) on the same explicit session/PID/HWND. Read preparation state, optionally request operation="snapshot", then operation="stop" and verify cleanup_verified. These images carry no input token. Preserve restore_pending and cleanup_unknown; never reinterpret temporary visibility as actual foreground or input readiness.

Follow this loop:

  1. For authorized foreground interaction, call ui_control__prepare_foreground with the current session_id, exact process_id and window_handle, and explicit operation="restore_activate" (or activate for an already visible window). It activates, reads back actual foreground/visibility, and returns a fresh same-session snapshot. For observation alone, call ui_control__snapshot; it never performs foreground preparation.
  2. Use ui_control__find for semantic controls when needed.
  3. Call ui_control__act once with the current snapshot_id.
  4. Call ui_control__wait_for for an explicit condition or take a fresh snapshot.
  5. Call ui_control__stop_computer_use when the application task is complete.

Never reuse an observation after an action, target change, display change, or resume. CUA actions are fenced by both observation_id and accessibility_state_id; stale actions fail closed.

For a native application menu bar, use ui_control__act(action="invoke_menu", menu_path=[...]) when a semantic menu click or Alt mnemonic cannot prove that a Qt popup opened. This exact-window native path does not require a prior snapshot, fails closed on missing or ambiguous levels, and invalidates any current observation. Check verification_required, then take a fresh snapshot and verify the popup or resulting application state before another mutation.

Prefer semantic control_id actions. Coordinate clicks, drag paths, raw typing, shortcuts, and game navigation are native input and require the raw-input gate. Do not use UI Control to enter credentials, solve authentication challenges, or cross a secure-desktop boundary.

Recording

Trajectory recording is session-scoped and intentionally asynchronous:

  1. Call ui_control__recording_start with an absolute output_dir and optional record_video=true.
  2. Perform the UI actions that should become evidence.
  3. Optionally call ui_control__recording_state.
  4. Call ui_control__recording_stop to finalize the trajectory.
  5. Preserve the finalized artifacts and structured state returned by CUA.

This replaces the removed synchronous JPEG-sequence record_clip contract. Core does not duplicate CUA's recording format.

In explicit owned pixels mode, recording needs the separate operator-owned UiControlRecordingOptions ceiling. It grants no input and never starts automatically. Use the same session and call recording_start with output_dir/record_video omitted: the runtime supplies its immutable task directory and video-only request. trajectory_available=false. Retain paused/degraded/failed state and partial artifacts. A failed stop is not finalization; read recording_state explicitly and always finish with stop_computer_use, preserving the actual cleanup ACK or failed/unknown outcome.

Semantic profiles and trusted handoff

Run dcc-cua profiles, then inspect the chosen application with dcc-cua profile --id <id>. Profile target IDs stay stable across languages; localized aliases are matching inputs, not translated identifiers. Dispatch a browser_dom surface through the exact-bound dcc-cua browser route, never the in-app Browser skill. A fallback such as ue/fab/download to fab/launcher_download requires a new Epic Games Launcher binding and fresh observation. Cloudflare challenges, authentication, purchases, and operating system security confirmations require trusted human action; full agent access does not bypass them.

Browser control

CDP is the first choice for browser content because it exposes DOM semantics, stable selectors, network state, and background operation. Use native CUA only for browser chrome, file pickers, permission prompts, canvas-only content, or when CDP is unavailable. Never attach a second automation stack to the same page concurrently.

Error handling

Treat these as recoverable only when the stated precondition can be restored:

  • stale_observation: take a fresh snapshot.
  • missing_window or invalid_target: rediscover and rebind the exact app.
  • desktop_unavailable: wait for the interactive desktop to return.
  • backend_unavailable: install/configure dcc-cua or restore CDP.
  • user_interrupted: stop until the operator explicitly resumes.
  • policy_disabled or permission_denied: do not bypass policy.

Successful snapshots include capture_provenance. Preserve it with any visual evidence. Audit logs redact typed text and other sensitive action payloads.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ui Control làm được gì?

Kỹ năng hạ tầng để quan sát giao diện ứng dụng, thực hiện thao tác trong phạm vi xác định, chờ và ghi lại chuỗi thao tác CUA khi công cụ DCC có kiểu dữ liệu xác định không thể truy cập giao diện cần thiết. Dùng kỹ năng này khi người dùng yêu cầu CUA, UI Control, dcc-cua hoặc tự động hóa giao diện ứng dụng trong DCC. Ưu tiên dùng công cụ DCC có kiểu dữ liệu xác định trước và CDP cho trình duyệt; dùng backend dcc-cua độc lập cho ứng dụng gốc.

Vì sao nên dùng Ui Control trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ui Control là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ui Control trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/dcc-mcp/dcc-mcp-core/tree/main/python/dcc_mcp_core/skills/ui-control. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ui Control?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ui Control với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ui Control với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ui Control có miễn phí không?

Có. Kỹ năng này được dcc-mcp phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇