AgentSkillsCN

desktop-inspect

通过检查窗口 UI 元素树结构,助力调试与理解界面布局。当你需要排查 UI 自动化问题、深入了解应用结构,或寻找正确的元素标识符时,此功能将为你提供有力支持。

SKILL.md
--- frontmatter
name: desktop-inspect
description: Inspect window UI element tree structure for debugging and understanding interface layout. When you need to debug UI automation issues, understand application structure, or find correct element identifiers.
system: true
handler: desktop
tool-name: desktop_inspect
category: Desktop

Desktop Inspect

检查窗口的 UI 元素树结构(用于调试和了解界面结构)。

Parameters

参数类型必填说明
window_titlestring窗口标题,不填则检查当前活动窗口
depthinteger元素树遍历深度,默认 2

Use Cases

  • 调试 UI 自动化问题
  • 了解应用程序界面结构
  • 查找正确的元素标识符用于点击/输入

Examples

检查当前窗口:

json
{}

检查记事本,深度 3:

json
{"window_title": "记事本", "depth": 3}

Returns

  • 元素名称
  • 元素类型
  • 元素 ID
  • 元素位置
  • 子元素列表

Related Skills

  • desktop-find-element: 查找特定元素
  • desktop-window: 窗口管理