preview_edits
Preview a batch of edits on an Office document in memory, returning before and after text for each location, so you can verify the changes before applying them.
Instructions
批量预览修改(仅内存计算,不写盘):按顺序在内存中对同一文档应用 edits 列表,返回每处的 {loc, before, after}。适合在真正 apply_edit 前检查一批修改是否符合预期。edits 元素为 {loc, new_content?, mode?, style?}。返回 [{loc, before, after}]。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文档绝对路径 | |
| edits | Yes | 要预览的修改列表(按顺序应用,与逐个 apply_edit 一致) |