ui_snapshot
Capture an accessibility snapshot of the page or iframe to reveal clickable UI elements with refs and coordinates before interacting. Optionally scope to a selector or frame.
Instructions
抓取页面 aria 快照(mode='ai' + boxes),给 AI 一张"语义之眼"。
官方 Playwright MCP 范式:把 accessibility 树(含 [ref=xx] 引用和 [box=x,y,w,h] 视口坐标)喂给 AI。VTable 本体是 canvas(单元格不进 a11y 树,仍走确定性几何定位), 但工具栏/弹窗/编辑器输入框都在树里 —— 交互前先读快照,再决定点哪个。 selector 非空时只快照该选择器命中的子树。
frame=None → 主页面;frame="active" → 当前激活的 AntD Tab iframe; frame="vtable" → 自动定位含表格的 iframe; 其它值按 iframe name 或 URL 子串匹配(如 "application" / "scm-spo")。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | ||
| depth | No | ||
| frame | No | ||
| ai_mode | No | ||
| selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||