inspect_document
Review document structure, node IDs, page geometry, colors, fonts, and text sizes before editing to target layout changes accurately.
Instructions
检查文档结构:页面摘要(尺寸/背景/节点数)与递归节点树(id、name、type、几何、文本摘要;内置图标标出 icon id,装饰素材标出 decoration id,组成装饰的组也标在组上),以及整套卡片的 style:用到的颜色(按占的面积排序,附 share 和用在 background/fill/text/line/shadow 哪些地方)、字体(texts 用了几段文字、largest 最大字号)和正文字号 bodySize。改文档前先 inspect,拿到节点 id / 路径再发动作。文档怎么写见 dingcard://schema/freeform 资源或 get_guide("document-model")。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | 完整的 v44(或 v1–43 旧版)文档 JSON,可替代 documentId | |
| documentId | No | 创建或修改文档的工具返回的 documentId(推荐:不必来回传整份文档) | |
| documentPath | No | 文档 JSON 文件的路径,可替代 documentId |