工具 API
slide_ list_ recent_ ai_ edits
列出文档最近通过 MCP 写工具产生的 AI 编辑记录(SLIDE)。 返回每条记录的 version + tool_name + time + tool_args(按时间倒序)。 撤销某次 AI 操作前,必须先调本工具:在返回列表中按 tool_name / tool_args 与用户描述匹配, 确认具体操作及其 version,再调 slide_undo_ai_edit(target_version=该 version)。 禁止跳过本工具直接撤销;禁止凭记忆填写 target_version。 【典型用法】 当用户要求「撤销刚才的 X 操作」时: 1. 调本工具(limit 默认 10),拿到最近若干次 AI 编辑(可用 tool_name 进行过滤); 2. 在列表中按 tool_name / tool_args 匹配用户描述,定位 target_version; 3. 调 slide_undo_ai_edit(file_id, target_version=匹配到的 version) 完成撤销。 【限制】 (1) 仅记录通过 MCP 写工具产生的编辑,前端手动编辑 / 程序化 CommitRevision 等其他写不在内; (2) Redis 存储,7 天 TTL;每个文档最多保留最近 200 条,只能撤销这 200 条内的 edit; (3) 部分工具的 tool_args 会截断,不会完整记录; (4) limit 缺省 10,上限 50;tool_name 为可选精确过滤(例如 "slide_add_image")。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.
调用信息
- 工具标识
- tencent-docs.slide_list_recent_ai_edits
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
file_id文档唯一标识符,与 file_url 二选一
file_url腾讯文档的文档链接,与 file_id 二选一
limit返回条数;缺省 10,最大 50
tool_name可选:按工具名过滤(精确匹配,如 "slide_add_image")
version_info版本入参(用于权限校验;不影响实际查询数据)