About Ruyi Workbench Oss
Ruyi Workbench Oss is an MCP server published by wangzhe04 in the Agents category: 开源 Windows 本地 AI 工作台|OpenAI-compatible + Claude CLI,99 个桌面/Office 工具,可回退文件操作与可视化多 Agent 工作流。. Conduid read 106 tools from its source: act_and_verify, audit_tail, batch_actions, beep, browser_backend_status, browser_click and 100 more. No package is published for it, so it installs from a source checkout.
The repository has 52 stars and 5 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include agent-orchestration, claude-cli, coding-agent, computer-use, desktop-agent and local-ai.
Install
git clone https://github.com/wangzhe04/ruyi-workbench-ossTools (106)
act_and_verifyDo one UI action and report how much the screen changed as a result.| Parameter | Type | Description |
|---|---|---|
| action * | object | {"type": "click"|"type"|"key", ...}. click -> x, y (physical screen coords; optional button, clicks). type -> text (optional use_clipboard, better for CJK). key -> key (e.g. "enter", "ctrl+s"). |
| region | string | Optional "x,y,width,height" limiting the diff. Default: ~200x200 around a click, the foreground window for type/key — pass the target field's rect for the tightest signal. |
| return_image | string | "" (default) | "after" (small after-screenshot) | "diff" (changed region only), returned in screenshot's image/width/height/scale/format keys. |
| save_shots | boolean | Also write before/after JPEGs under <data>/shots (newest 40 kept) and return their paths; written automatically when NOTHING changed. |
| settle_ms | integer | Time the UI gets to react (cap 5000): waits up to 2*settle_ms for a change, then up to settle_ms for it to stop; a no-op waits the full 2*settle_ms. Raise for slow apps. |
audit_tailReturn the most recent audit-log records (mutating tool calls).| Parameter | Type | Description |
|---|---|---|
| n | integer | Number of most-recent records to return (1-1000, default 50). |
batch_actionsRun several tool calls in ONE round-trip.| Parameter | Type | Description |
|---|---|---|
| actions * | array | list of steps, each {"tool": "<tool_name>", "args": {...}}. |
| delay_ms | integer | optional pause between steps (ms). |
| on_error | string | "stop" (default) halts on the first failing step; "continue" runs all. |
beepPlay a tone through the PC speaker / default device.| Parameter | Type | Description |
|---|---|---|
| duration_ms | integer | Duration in milliseconds. |
| frequency | integer | Tone frequency in Hz (37-32767). |
browser_backend_statusShow the configured browser target and whether browser_* automation is attached.browser_clickClick an element in the browser page.| Parameter | Type | Description |
|---|---|---|
| selector | string | CSS selector to click (e.g. "#submit", ".btn-primary"). |
| text | string | Click the first element containing this text. |
| x | integer | Click at specific X coordinate on the page. |
| y | integer | Click at specific Y coordinate on the page. |
browser_closeClose the browser instance.browser_get_elementsGet information about elements matching a CSS selector.| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector to query. |
browser_get_textExtract text content from the page or a specific element.| Parameter | Type | Description |
|---|---|---|
| max_chars | integer | Max characters returned (default 20000); longer text is cut and marked truncated with 'total_chars' so you can narrow the selector. |
| selector | string | Optional CSS selector; None = full page text. |
browser_list_tabsList the open browser tabs (index, url, title). Use the index with browser_switch_tab.browser_navigateNavigate the browser (back, forward, reload).| Parameter | Type | Description |
|---|---|---|
| action * | string | One of "back", "forward", or "reload". |
browser_openOpen a URL in the browser.| Parameter | Type | Description |
|---|---|---|
| mode | string | |
| new_tab | boolean | Open in a new tab (default True). The tool never navigates a detected Ruyi/Workbench tab. |
| url * | string | URL to navigate to. |
browser_screenshotTake a screenshot of the current browser page.| Parameter | Type | Description |
|---|---|---|
| format | string | 'png' (default) or 'jpeg' (much smaller for photo-heavy pages). |
| max_width | integer | If >0, downscale to this width (default 1280; 0 = original). |
| quality | integer | JPEG quality 1-100 (ignored for PNG). |
browser_switch_tabMake the tab at `index` (from browser_list_tabs) the active one for subsequent browser_* calls.| Parameter | Type | Description |
|---|---|---|
| index * | integer |
browser_typeType text into an input element.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | If True, clear the field before typing. |
| selector * | string | CSS selector of the input element. |
| text * | string | Text to type. |
chart_imageRender a standalone chart image (.png) with matplotlib, styled from design tokens (模板驱动).| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| chart_type * | string | 'bar' | 'line' | 'pie' | 'scatter' | 'hbar' | 'stacked_bar' | 'area'. |
| data * | object | see above; may also carry 'x_title' / 'y_title' (top-level params win). |
| path * | string | Output .png path. |
| style | string | 'business' (default) | 'minimal' | 'vibrant'. Unknown -> 'business'. |
| title * | string | Chart title. |
| x_title | string | Horizontal-axis title. None = data['x_title'] or empty; '' = none. |
| y_title | string | Vertical-axis title. None = data['y_title'] or, for a single series, its name; '' = none. Pie ignores both. |
close_windowAsk a window to close, then confirm whether it actually closed.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | |
| handle | integer | |
| title | string |
copy_fileCopy a file or directory.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Override the protected-system-root guard on the destination (default off). |
| destination * | string | Destination path. |
| source * | string | Source path. |
delete_fileDelete a file or directory.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Override the protected-system-root guard (default off). |
| confirm | boolean | |
| path * | string | Path to delete. |
diagnosticsReport server version, Python, admin status, monitors, DPI, and optional-module availability.edit_fileReplace an exact string inside a file, in place (partial edit).| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard (default off). |
| encoding | string | Text encoding for read and write (default utf-8). UTF-8 BOM and CRLF/LF endings are preserved (.bat/.ps1 stay CRLF); write old_string/new_string with LF. |
| new_string * | string | Replacement text (may be empty to delete). |
| old_string * | string | Exact text to find, byte-for-byte INCLUDING indentation and newlines (copy it from read_file). |
| path * | string | File to edit (must exist). |
| replace_all | boolean | False (default) requires old_string to occur EXACTLY once — 0 or >1 matches is an error (guards against ambiguous edits). True replaces every occurrence. |
excel_beautifyBeautify an existing .xlsx into a professional-looking sheet (模板驱动, idempotent).| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| header_row | integer | 1-based header row (default 1); rows below are data. |
| path * | string | Path to an existing .xlsx (e.g. just written by write_excel). |
| sheet | string | Worksheet name; None = the active/first sheet. |
| style | string | 'business' (default) | 'minimal' | 'vibrant'. Unknown -> 'business'. |
excel_chartInsert a native chart (bar | line | pie | scatter) into an existing .xlsx, coloured from the style palette.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| chart_type * | string | 'bar' | 'line' | 'pie' | 'scatter'. |
| data_range * | string | Data area as 'A1:B10' (layout above). |
| path * | string | Path to an existing .xlsx. |
| sheet * | string | Worksheet holding the data (the chart goes on the same sheet). |
| target_cell | string | Anchor cell of the chart's top-left corner (default 'H2'). |
| title * | string | Chart title. |
| x_title | string | Horizontal-axis title, e.g. 「季度」. |
| y_title | string | Vertical-axis title, e.g. 「销售额(万元)」. |
excel_read结构化读取 Excel (.xlsx):二维 data + 表头 + 可选公式/数字格式。| Parameter | Type | Description |
|---|---|---|
| include_formulas | boolean | True 时额外回读公式 (如 {'D2':'=SUM(B2:C2)'}),稍慢;缺省只给算好的值。 |
| max_rows | integer | 数据行数上限,默认 200;超出则截断并在 truncated 给出真实总行数。 |
| path * | string | .xlsx 文件路径。 |
| range | string | A1 记法区域 ('A1:D50' / 单格 'B2');缺省从 A1 读到数据末尾 (受 max_rows 限)。 |
| sheet | string | 工作表名;缺省读活动表,并在 sheets 里给出全部表的概要。 |
fetchFetch a web page / API endpoint over HTTP(S) with SSRF protection.| Parameter | Type | Description |
|---|---|---|
| format | string | "text" (default) — HTML reduced to visible text (script/style/nav/footer dropped; '#' headings, '- ' items, [text](url) links); JSON/plain text as is. "raw" — decoded body untouched. |
| max_bytes | integer | Body byte budget (default 200KB, cap 2MB). |
| max_chars | integer | Max characters returned per call (default 30000, cap 200000). |
| offset | integer | Character offset into the extracted text; continue a long page with the previous 'next_offset' (each call re-fetches). |
| timeout | integer | Per-request seconds (1-60, default 15). |
| url * | string | http(s) URL. Every redirect hop is re-validated (max 5). |
file_infoGet detailed file metadata.| Parameter | Type | Description |
|---|---|---|
| path * | string | File path. |
find_all_templatesFind all occurrences of a template on screen (deduped). Optional region "x,y,width,height"| Parameter | Type | Description |
|---|---|---|
| confidence | number | |
| max_results | integer | |
| multiscale | boolean | |
| region | string | |
| template_b64 | string | |
| template_path | string |
find_on_screenFind an image template on the screen using template matching.| Parameter | Type | Description |
|---|---|---|
| confidence | number | Matching confidence threshold (0.0-1.0, default 0.8). |
| template_path * | string | Path to the template image file to search for. |
find_templateLocate a template image on screen (multi-scale). Returns best match with 'center' for clicking.| Parameter | Type | Description |
|---|---|---|
| confidence | number | |
| multiscale | boolean | |
| region | string | |
| template_b64 | string | |
| template_path | string |
focus_windowBring a window to the foreground by title or handle, and confirm it actually took focus.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | If several windows match a partial title, the call refuses without confirm and lists them in 'matches' [{handle, title, process}] — retry with handle=<handle>. |
| handle | integer | Window handle (takes priority over title). |
| title | string | Window title (partial match). |
get_active_windowGet information about the currently focused/active window.get_clipboard读取系统剪贴板里的【文本】。get_clipboard_imageRead an image currently on the clipboard (e.g. a screenshot the user copied).| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on save_path (default off). |
| format | string | 'png' (default) or 'jpeg' for the base64 return. |
| max_width | integer | Base64 return only: downscale to this width (default 1280; 0 = original); 'scale' reports the factor. |
| quality | integer | JPEG quality 1-100 (ignored for PNG). |
| save_path | string | Optional PNG path to save to (full resolution); omitted -> base64. |
get_dpi_infoReturn the process DPI-awareness mode and the primary monitor's scale factor.get_environment_variableGet the value of an environment variable.| Parameter | Type | Description |
|---|---|---|
| name * | string | Environment variable name. |
get_mouse_positionGet the current mouse cursor position.get_pixel_colorGet the RGB color of the screen pixel at (x, y).| Parameter | Type | Description |
|---|---|---|
| x * | integer | |
| y * | integer |
get_screen_infoGet information about screen resolution, DPI, and multi-monitor setup.get_system_infoGet comprehensive system information including OS, CPU, memory, and disk.hotkeyPress a keyboard shortcut (multiple keys held simultaneously).| Parameter | Type | Description |
|---|---|---|
| keys * | any | Shortcut such as "ctrl+l" or a list such as ["ctrl", "shift", "s"]. |
image_info读取图片的基本信息 (宽/高/格式/模式/文件大小/DPI);纯读、无副作用。配合 image_resize:先看原始尺寸再决定缩多大。| Parameter | Type | Description |
|---|---|---|
| path * | string | 图片文件路径 (Pillow 支持的格式)。 |
image_resize等比 (或按 scale) 缩放图片 (LANCZOS),写到 output_path。| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | 覆盖「受保护系统树」护栏 (默认关)。 |
| height | integer | 目标高 (像素)。 |
| output_path * | string | 输出路径 (必填;扩展名决定格式,.jpg -> JPEG、.png -> PNG);可与 path 相同 (原地覆盖)。 |
| path * | string | 源图片路径。 |
| quality | integer | JPEG 质量 1-100 (仅 .jpg/.jpeg 输出),默认 85。 |
| scale | number | 整体缩放系数 (>0);给了就忽略 width/height。 |
| width | integer | 目标宽 (像素)。 |
key_downHold down a key (useful for drag operations or key combinations).| Parameter | Type | Description |
|---|---|---|
| key * | string | Key to hold down. |
key_upRelease a held key.| Parameter | Type | Description |
|---|---|---|
| key * | string | Key to release. |
kill_processKill a running process by PID or name — with safety guards.| Parameter | Type | Description |
|---|---|---|
| allow_critical | boolean | Override the critical-OS-process denylist (default off). |
| confirm | boolean | Required when a name matches more than one process. |
| contains | boolean | Opt in to substring matching (dangerous — use with confirm). |
| force | boolean | True = force kill (SIGKILL); otherwise graceful terminate. |
| name | string | Process name; matches the EXACT basename (case-insensitive, ".exe" optional), NOT a substring. |
| pid | integer | Process ID to kill. |
launch_applicationLaunch an application and confirm it really started (real pid, main window when one appears).| Parameter | Type | Description |
|---|---|---|
| args | string | Command-line arguments (paths with spaces are quoted); not allowed with a document/URL. |
| path * | string | Executable path, a name on PATH, a registered app name (calc, mspaint, msedge, chrome, code), or a document/URL for its default handler. |
| ready_timeout | number | Seconds to wait for the main window (0 skips, max 60). |
| wait | boolean | Block until exit and capture output (console programs only; GUI apps: wait=False). |
| wait_timeout | number | Seconds to wait for exit when wait=True (default 120, clamped to [1, 600]). |
| working_dir | string | Working directory. |
list_directoryList files and directories in a path.| Parameter | Type | Description |
|---|---|---|
| include_hidden | boolean | If True, include dot-files/dirs; when False, hidden directories (e.g. .git) are not descended into either. |
| limit | integer | Max entries (default and hard max 1000), for every mode. |
| path | string | Directory path to list. |
| pattern | string | Optional glob filter (e.g. "*.txt"). |
| recursive | boolean | If True, list recursively. |
list_monitorsEnumerate physical monitors with their pixel bounds and which is primary.list_processesList running processes.| Parameter | Type | Description |
|---|---|---|
| name_filter | string | Optional filter to match process names (case-insensitive partial match). |
list_windowsList all visible windows with their titles, handles, and positions.macro_listList saved macros in <data>/macros (name, step count, path, recorded_at).macro_runReplay a Claude-authored macro (a JSON list of tool steps) in one round-trip.| Parameter | Type | Description |
|---|---|---|
| delay_ms | integer | |
| on_error | string | |
| steps * | array |
maximize_windowMaximize a window. Returns 'ok' and the resulting 'maximized' state.| Parameter | Type | Description |
|---|---|---|
| handle | integer | |
| title | string |
memory_deleteDelete a memory entry by key.| Parameter | Type | Description |
|---|---|---|
| key * | string | The exact slug to delete. |
memory_listList memory entries, optionally filtered by a case-insensitive substring.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max entries returned (1-200, default 50). Results are newest-updated first. |
| query | string | Substring filter (empty = list all). Case-insensitive. |
memory_readRead one memory entry by its exact key.| Parameter | Type | Description |
|---|---|---|
| key * | string | The exact slug used at memory_save time. |
memory_saveSave or update a durable memory entry (upsert by key).| Parameter | Type | Description |
|---|---|---|
| content * | string | Free-text body (max 4000 chars; longer is truncated with a marker). |
| key * | string | Short slug (e.g. "user-editor-preference"); reusing a key overwrites (that IS the update path). |
| tags | string | Optional comma-separated labels for filtering (e.g. "preference,editor"). |
message_boxShow a Windows message box and return the user's response.| Parameter | Type | Description |
|---|---|---|
| buttons | string | "ok", "okcancel", "yesno", "yesnocancel". |
| icon | string | "info", "warning", "error", "question". |
| message * | string | Message text. |
| timeout_ms | integer | Auto-dismiss delay (default 30s; clamped to [1s, 60s]). |
| title * | string | Box title. |
minimize_windowMinimize a window. Returns 'ok' and the resulting 'minimized' state.| Parameter | Type | Description |
|---|---|---|
| handle | integer | |
| title | string |
mouse_clickClick the mouse at the specified coordinates.| Parameter | Type | Description |
|---|---|---|
| button | string | "left", "right", or "middle". |
| clicks | integer | Number of clicks (1 single, 2 double). |
| interval | number | Seconds between multiple clicks. |
| x * | integer | X coordinate. |
| y * | integer | Y coordinate. |
mouse_dragDrag the mouse from one position to another.| Parameter | Type | Description |
|---|---|---|
| button | string | Mouse button to hold during drag. |
| duration | number | Time in seconds for the drag operation. |
| end_x * | integer | Ending X coordinate. |
| end_y * | integer | Ending Y coordinate. |
| start_x * | integer | Starting X coordinate. |
| start_y * | integer | Starting Y coordinate. |
mouse_moveMove the mouse cursor to the specified coordinates.| Parameter | Type | Description |
|---|---|---|
| duration | number | Time in seconds for the movement animation. |
| x * | integer | Target X coordinate. |
| y * | integer | Target Y coordinate. |
mouse_scrollScroll the mouse wheel.| Parameter | Type | Description |
|---|---|---|
| clicks * | integer | Wheel notches. Positive = up/right, negative = down/left. |
| direction | string | "vertical" (default) or "horizontal" (a real WM_MOUSEHWHEEL event; pyautogui's hscroll is a no-op on Windows). |
| x | integer | Optional X to scroll at (default: current position). |
| y | integer | Optional Y to scroll at (default: current position). |
move_fileMove or rename a file or directory.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Override the protected-system-root guard (default off). |
| destination * | string | Destination path. |
| source * | string | Source path. |
move_windowMove a window to a new position, then report its ACTUAL position (a maximized window is restored first).| Parameter | Type | Description |
|---|---|---|
| handle | integer | |
| title | string | |
| x * | integer | |
| y * | integer |
notify_attentionPlay a standard Windows notification sound to get the operator's attention.| Parameter | Type | Description |
|---|---|---|
| sound | string | one of asterisk|info|exclamation|warning|hand|error|question|ok|default. |
observeOne-shot situational snapshot: screenshot + focused window + UIA elements + OCR words.| Parameter | Type | Description |
|---|---|---|
| format | string | 'png' (default) or 'jpeg'. |
| include_ocr | boolean | Collect OCR words (<=200). |
| include_screenshot | boolean | Default True. False skips the image (text-only models / cheap polling): no 'screenshot' key, no full-screen grab (OCR of a targeted window grabs only its rect). |
| include_uia | boolean | Collect UI-Automation elements (<=80). |
| lang | string | Optional OCR language hint (zh/chinese/zh-CN -> zh-Hans, ja, ko, en); omit to auto-detect. |
| max_width | integer | Downscale the screenshot to this width (default 1280; 0 = original). Screen x = screenshot.origin.x + x / scale. |
| quality | integer | JPEG quality 1-100 (ignored for PNG). |
| window_title | string | Restrict UIA and OCR to this window (substring); omit for the foreground window (UIA) / primary screen (OCR). |
ocr_available_languagesList installed OCR language packs (BCP-47 tags + display names).ocr_clickOCR the screen (or region), find `text` (case-insensitive), and click its center.| Parameter | Type | Description |
|---|---|---|
| lang | string | Optional OCR language tag (zh/chinese/ja/ko/en). |
| nearest_to | object | {"x","y"}; click the closest match. |
| nth | integer | 0-based index into the reading-order matches. |
| region | string | Optional "x,y,width,height". |
| return_candidates | boolean | Return all matches without clicking. |
| text * | string | Text to find (word/substring or phrase). |
ocr_find_textOCR the screen (or a region) and locate `text`, spanning adjacent words if needed.| Parameter | Type | Description |
|---|---|---|
| click | boolean | If True, click the center of the match. |
| lang | string | Optional OCR language tag (e.g. "en", "zh", "zh-Hans", "ja"). |
| region | string | Optional "x,y,width,height". |
| text * | string | Text to find (case-insensitive; may span several OCR words; CJK needs no spaces). |
ocr_imageRun OCR on an image file. Returns recognized text + per-word bounding boxes (image coords).| Parameter | Type | Description |
|---|---|---|
| lang | string | Optional language hint: "zh"/"chinese"/"zh-CN" -> zh-Hans, "zh-TW"/"zh-Hant" -> zh-Hant, "ja", "ko", "en". Omit to auto-detect from the system locale. |
| path * | string | Image file to OCR. |
ocr_screenRun OCR on the whole primary screen, or a region "x,y,width,height".| Parameter | Type | Description |
|---|---|---|
| lang | string | Optional language hint (zh/chinese/zh-CN, zh-TW/zh-Hant, ja, ko, en); omit to auto-detect from the system locale. |
| region | string | Optional "x,y,width,height". |
pdf_read_pages分页读取 PDF:只读你点名的页,避免「50 页 PDF 整读爆上下文」。| Parameter | Type | Description |
|---|---|---|
| max_chars | integer | 本次调用总字符预算,默认 30000(另有约 15 秒时间预算);用尽即停,返回 next_pages / nextPage。 |
| max_chars_per_page | integer | 每页文本上限,默认 4000;超出截断并 truncated=True。 |
| pages | string | 1-based 页码规格:'3' / '1-5' / '1,3,7-9'。默认 '1-5'。 |
| path * | string | .pdf 文件路径。 |
play_soundPlay a .wav file or a named Windows system sound (async, non-blocking).| Parameter | Type | Description |
|---|---|---|
| alias | string | A system sound alias, e.g. "SystemAsterisk", "SystemExclamation". |
| path | string | Absolute path to a .wav file. |
press_keyPress a single key or key combination.| Parameter | Type | Description |
|---|---|---|
| key * | string | Key name (e.g. "enter", "tab", "escape", "f5", "delete") or combination with + (e.g. "ctrl+c", "alt+f4", "ctrl+shift+s"). |
read_documentRead the text content of a document file (Word .docx, PowerPoint .pptx, Excel .xlsx, PDF .pdf).| Parameter | Type | Description |
|---|---|---|
| max_chars | integer | 单次返回字符上限(默认 20000,硬上限 200000)。超出时 truncated=true 并给 next_offset。 |
| offset | integer | 从抽取文本的第几个字符开始返回;续读用同一 path + offset=next_offset。 |
| path * | string | Path to the document file. |
read_fileRead the text content of a file.| Parameter | Type | Description |
|---|---|---|
| annotate_non_ascii | boolean | |
| encoding | string | Text encoding (default utf-8). "auto" detects: UTF-8 first, then the system ANSI code page (cp936 on zh-CN). The default also falls back this way so a GBK file never becomes silent mojibake; the encoding used is reported as 'encoding_used' (plus 'encoding_fallback' when a fallback occurred). |
| max_bytes | integer | Maximum bytes to read (default 1MB) — a BYTE budget (binary read then decode), so a UTF-8 Chinese file (~3 bytes/char) returns at most ~max_bytes/3 characters. |
| path * | string | File path to read. |
record_stopStop the active recording and return the captured steps (macro_run-compatible).| Parameter | Type | Description |
|---|---|---|
| save_as | string | Optional macro name; steps are written to <data>/macros/<name>.json ('.json' added if missing) for macro_list / macro_run. |
resize_windowResize a window, then report its ACTUAL size (a maximized window is restored first).| Parameter | Type | Description |
|---|---|---|
| handle | integer | |
| height * | integer | |
| title | string | |
| width * | integer |
run_commandExecute a shell command and return its output.| Parameter | Type | Description |
|---|---|---|
| allow_dangerous | boolean | Override the destructive-command denylist. |
| command * | string | The command to execute. |
| encoding | string | Force an output encoding. Default: strict UTF-8, then the OEM/console code page (cp936 on zh-CN); `powershell -Command ...` is made to emit UTF-8 so Chinese survives non-Chinese Windows code pages. |
| max_output_chars | integer | Per-stream budget (stderr gets half, min 2000), default 16000, max 200000; longer output keeps head + tail with an "[…N chars omitted…]" marker. |
| shell | boolean | Run through the shell (default True). |
| timeout | integer | Seconds (default 60, cap 600); on expiry the whole process tree is killed. |
| working_dir | string | Working directory. |
safety_infoReport the effective safety guardrails (built-in floor + any data-dir safety.json overrides).screenshotTake a screenshot of the primary screen, a region, a monitor, or a specific window.| Parameter | Type | Description |
|---|---|---|
| format | string | 'png' (default) or 'jpeg' (smaller; uses 'quality'). |
| max_width | integer | If >0, downscale to this width; 0 = original. x_screen = origin.x + x_in_image / scale. |
| monitor | string | 'all' (whole virtual desktop) or an index from list_monitors. Default: primary only. Ignored when region or window_title is given. |
| quality | integer | JPEG quality 1-100 (ignored for PNG). |
| region | string | Optional "x,y,width,height" (e.g. "100,200,800,600"); may lie on any monitor. |
| window_title | string | Capture this window (exact title, else a unique substring; ambiguous -> candidates) via PrintWindow, so a covered window works; falls back to a screen crop ('occluded_possible': true) if it renders blank. Minimized -> error with a hint (window_screenshot auto-restores). |
screenshot_regionTake a screenshot of a rectangular region (virtual-screen coordinates, any monitor).| Parameter | Type | Description |
|---|---|---|
| format | string | 'png' (default) or 'jpeg'. |
| height * | integer | Region height. |
| max_width | integer | If >0, downscale to this width (0 = original). Map an image point to screen: x_screen = origin.x + x_in_image / scale. |
| quality | integer | JPEG quality 1-100 (ignored for PNG). |
| width * | integer | Region width. |
| x * | integer | Left coordinate (negative on a monitor left of the primary). |
| y * | integer | Top coordinate. |
scroll_atScroll the wheel by `amount` at screen position (x, y). Positive = up, negative = down.| Parameter | Type | Description |
|---|---|---|
| amount * | integer | |
| x * | integer | |
| y * | integer |
sequential_thinkingRecord one step of an explicit step-by-step reasoning chain.| Parameter | Type | Description |
|---|---|---|
| branch_from_thought | integer | Start a side branch from this step. |
| branch_id | string | Branch identifier (required with branch_from_thought). |
| is_revision | boolean | True when this step rethinks a previous one. |
| next_thought_needed * | boolean | True if another step follows; False ends the chain. |
| revises_thought | integer | thought_number being revised (required with is_revision). |
| thought * | string | Content of this step. |
| thought_number * | integer | 1-based step number (may exceed total_thoughts). |
| total_thoughts * | integer | Current estimate of the chain length (revisable). |
set_clipboard把一段【文本】写入系统剪贴板,供其它程序粘贴 (Ctrl+V)。| Parameter | Type | Description |
|---|---|---|
| text * | string | 要放进剪贴板的文本。 |
set_clipboard_imagePut an image file onto the clipboard, so it can be pasted into other apps (Ctrl+V).| Parameter | Type | Description |
|---|---|---|
| path * | string | 源图片文件路径 (PNG/JPG 等 Pillow 可读格式;写入前预验,坏文件直接报错)。 |
set_window_topmostSet a window to always stay on top (or remove topmost).| Parameter | Type | Description |
|---|---|---|
| handle | integer | Window handle. |
| title | string | Window title to find. |
| topmost | boolean | True to pin on top, False to unpin. |
show_notificationShow a Windows toast notification.| Parameter | Type | Description |
|---|---|---|
| duration | integer | Display duration in seconds (approximate). |
| message * | string | Notification message body. |
| title * | string | Notification title. |
type_textType a string of text using the keyboard.| Parameter | Type | Description |
|---|---|---|
| interval | number | Seconds between keystrokes (ignored for clipboard paste). |
| text * | string | The text to type. |
| use_clipboard | boolean | None (default) = auto: clipboard paste for non-ASCII/CJK, multi-line or long (>200 chars) text (verbatim, no editor auto-indent), key-by-key only for short single-line ASCII. True = force paste. False = force key-by-key (cannot produce CJK; editors may auto-indent multi-line text). A single-line text ending in "\\n" (e.g. "搜索词\\n") is pasted without it and Enter is pressed. |
ui_findFind controls by name / control type / automation id within a window.| Parameter | Type | Description |
|---|---|---|
| automation_id | string | Exact automation id. |
| control_type | string | Substring of the control type, e.g. "Button", "Edit". |
| enabled_only | boolean | Skip disabled controls. |
| max_depth | integer | Tree depth limit (default 8). |
| max_results | integer | Stop after this many matches. |
| name | string | Substring of the control name (case-insensitive). |
| visible_only | boolean | Skip offscreen / zero-size controls. |
| window_title | string | Substring of the window title; omit for the foreground window. |
ui_inspectDump the UI Automation tree of a window (or the foreground window) as nested nodes.| Parameter | Type | Description |
|---|---|---|
| max_depth | integer | Tree depth limit. |
| max_nodes | integer | Hard cap on nodes returned (prevents huge dumps). |
| window_title | string | Substring of the target window title; omit for the foreground window. |
ui_invokeAct on a control matching the given selectors (the first ACTIONABLE match unless `nth` is given).| Parameter | Type | Description |
|---|---|---|
| action | string | invoke | click | set_value | focus | toggle | expand. |
| automation_id | string | |
| control_type | string | |
| name | string | |
| nth | integer | |
| text | string | |
| window_title | string |
version_infoReturn the server version and tool count (compact companion to `diagnostics`).vision_clickLocate a template on screen (multi-scale) and optionally click its center.| Parameter | Type | Description |
|---|---|---|
| click | boolean | If True (default), click the match center. |
| multiscale | boolean | Try scales 0.5x-2x (100-200% DPI robustness); stops early at a >= 0.97 match. |
| region | string | Optional "x,y,width,height" in virtual-screen coords. Default: PRIMARY monitor only; pass a region to search another monitor (also much faster). |
| template_b64 | string | Base64-encoded template image (alternative to template_path). |
| template_path | string | Path to the template image (or pass template_b64). |
| threshold | number | Match confidence threshold (0.0-1.0; clamped to [0.05, 1.0]). |
waitWait for a specified number of seconds.| Parameter | Type | Description |
|---|---|---|
| seconds * | number | Number of seconds to wait (0–300; larger values are capped at 300). |
wait_for_imagePoll the screen until a template appears (or timeout). Returns the match for clicking.| Parameter | Type | Description |
|---|---|---|
| confidence | number | |
| poll_ms | integer | |
| region | string | |
| template_b64 | string | |
| template_path | string | |
| timeout | number |
wait_for_pixelPoll the pixel at (x, y) until it matches color_hex (within tolerance) or timeout.| Parameter | Type | Description |
|---|---|---|
| color_hex * | string | |
| poll_ms | integer | |
| timeout_ms | integer | |
| tolerance | integer | |
| x * | integer | |
| y * | integer |
wait_for_windowWait until a top-level window whose title matches `title` appears.| Parameter | Type | Description |
|---|---|---|
| exact | boolean | Require an exact (case-insensitive) title match. |
| poll_ms | integer | Poll interval in ms. |
| timeout | number | Max seconds to wait (wall-clock bounded; capped at 120, 'capped' is set when cut). |
| title * | string | Substring (default) or exact title (exact=True), case-insensitive. |
wait_for_window_idleWait until a process's UI message queue is idle (WaitForInputIdle).| Parameter | Type | Description |
|---|---|---|
| pid * | integer | |
| timeout_ms | integer |
window_screenshotScreenshot a specific window by (case-insensitive) title substring.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on output_path (default off). |
| format | string | 'png' (default) or 'jpeg' for the base64. |
| max_width | integer | If >0, downscale the base64 image to this width (default 1280; 0 = original; ignored with output_path). Map an image point to screen: x_screen = origin.x + x_img / scale. |
| output_path | string | Optional path to write (full-resolution PNG); omitted -> base64 in 'image_base64'. |
| quality | integer | JPEG quality 1-100. |
| title_substring * | string | Part of the window's title. |
write_documentCreate or overwrite a styled Word document (.docx); every style carries an explicit font (中文 never falls| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| content * | string | Body text in markdown-lite. |
| cover | object | Optional {title, subtitle?, date?, author?} — a full-width dark title block on its own page, then a page break before the body. |
| page_numbers | boolean | True adds a centred 「第 X 页」 footer (live PAGE field). Default off. |
| path * | string | Output file path (must end with .docx). |
| style | string | 'business' (default) | 'minimal' | 'vibrant'. Unknown -> business. |
| title | string | Optional Title-styled heading at the top of the body. |
write_excelCreate or overwrite a styled Excel file (.xlsx); styled on write, no beautify pass needed.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| data | array | 2D list of rows; cells may be strings, numbers, booleans or null (empty). |
| headers | array | Optional header row values. |
| path * | string | Output file path (must end with .xlsx). |
| sheet_name | string | Worksheet name (<=31 chars, none of [ ] : * ? / \\). |
| style | string | 'business' (default) | 'minimal' | 'vibrant'. Unknown -> business. |
write_fileWrite or append text content to a file. Creates parent directories if needed.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| append | boolean | If True, append instead of overwriting. |
| content * | string | Text content. |
| encoding | string | Text encoding (default utf-8). |
| path * | string | File path to write. |
write_pdfCreate or overwrite a PDF (.pdf) from markdown-lite text, with full Chinese support.| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| content * | string | Body text in markdown-lite. |
| page_size | string | 'A4' or 'letter' (anything else -> A4). |
| path * | string | Output file path (must end with .pdf). |
| table_data | array | Optional 2D list of rows rendered as a table after the body (cells may be null = empty). |
| table_headers | array | Optional header row for the trailing table. |
| title | string | Optional document title (top heading). |
write_pptxCreate a 16:9 PowerPoint (.pptx) from slide specs, styled from design tokens (模板驱动).| Parameter | Type | Description |
|---|---|---|
| allow_protected | boolean | Bypass the protected-path guard on the destination (default off). |
| path * | string | Output .pptx path. |
| slides * | array | List of slide spec dicts. Empty -> error. |
| style | string | 'business' (default) | 'minimal' | 'vibrant'. Unknown -> 'business'. |
Security checks
6 checks have not been run yet.