TOOL API

doc.undo_ai_edit

Reverts a specific AI edit in a Tencent Docs document, git-revert style: the inverse of the target revision is merged with later revisions via OT and written as a new revision, so no history is deleted and the undo can itself be undone later. Before calling, you must first call doc.list_recent_ai_edits to list recent AI edits, locate the exact operation via tool_name / tool_args, and use its version as target_version; never fill in target_version from memory. Only edits still held in Redis can be reverted (most recent 200 per document, 7-day TTL). It fails if the target revision contains a mutation type that can't be inverted, the inverse command can't legally run on the current document, all of the target revision's changes were already overwritten by later edits (everything becomes a noop after OT), or target_version is out of range or its edit has aged out of the retention window. 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.

productivityOAuth1 credits

Call information

Tool slug
tencent-docs.doc.undo_ai_edit
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

file_id

在线文档DOC的文档唯一标识符(与file_url二选一)

file_urlrequired

腾讯文档的URL链接(推荐),与file_id二选一

target_versionrequired

待反向的目标 revision 版本号;必须 > 0 且 <= 当前最新版本

version_info

版本参数(此处仅用于定位 latest 版本)