get_page_snapshot
Capture a structured scope graph of a WeChat mini-program page or custom component with configurable depth, element, and scope limits for focused UI testing.
Instructions
获取 Page 或自定义组件的 V2 scopes/edges 作用域图(默认预算 4/64/1000)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | 可选;必须唯一定位到自定义组件 | |
| budget | No | ||
| format | No | compact | |
| filePath | No | 可选的 UTF-8 快照输出路径 | |
| includePosition | No | ||
| includeAttributes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | Yes | ||
| data | Yes | ||
| meta | Yes | ||
| error | Yes | ||
| warnings | Yes | ||
| nextActions | Yes | ||
| observation | Yes | ||
| partialData | Yes | ||
| schemaVersion | Yes |