annotate_document
Start an interactive annotation session for Office documents, opening a browser window to select text and add prompts. Reuses open windows and auto-reloads after edits for iterative refinement.
Instructions
打开文档标注页面(H5):创建标注会话并启动本地 HTTP 服务,在独立浏览器应用窗口打开标注页(无地址栏/工具栏/标签页)。若同一文档已有存活窗口则直接复用(原位重载、清空上轮标注),不重新开窗。返回 {session_id, url}。多轮循环:窗口会在文档被修改后自动重载最新内容(apply_edit 成功后服务端主动推送),无需每次手动调用本工具;也可在本轮开始或需要立即刷新时主动调用。同一文档重复调用会复用现有窗口。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标文档绝对路径(.docx / .xlsx / .pptx) |