AgentSkillsCN

desktop-window

窗口管理操作。当你需要列出所有已打开的窗口、切换至特定窗口、最小化/最大化/恢复窗口,或关闭窗口时,此功能将助你一臂之力。可通过 title 参数精准定位目标窗口(支持模糊匹配)。

SKILL.md
--- frontmatter
name: desktop-window
description: Window management operations. When you need to list all open windows, switch to a specific window, minimize/maximize/restore windows, or close windows. Use title parameter for targeting specific window (fuzzy match).
system: true
handler: desktop
tool-name: desktop_window
category: Desktop

Desktop Window

窗口管理操作。

Parameters

参数类型必填说明
actionstring操作类型:list/switch/minimize/maximize/restore/close
titlestring窗口标题(模糊匹配),list 操作不需要

Actions

操作说明需要 title
list列出所有窗口
switch切换到指定窗口(激活并置顶)
minimize最小化窗口
maximize最大化窗口
restore恢复窗口
close关闭窗口

Examples

列出所有窗口:

json
{"action": "list"}

切换到记事本:

json
{"action": "switch", "title": "记事本"}

最大化 Chrome:

json
{"action": "maximize", "title": "Chrome"}

Returns (list action)

  • 窗口标题
  • 窗口句柄
  • 窗口位置和大小

Related Skills

  • desktop-screenshot: 截取窗口
  • desktop-inspect: 检查窗口结构