TOOL API
doc. compare_ documents
Compares the content and formatting of two Tencent Docs DOC documents and returns a paragraph-level diff list covering additions, deletions, content changes and format changes. The current document is the source and the target is given by other_file_id or other_file_url; diff types are added, deleted, modified_content and modified_format. It also diffs headers and footers, text boxes (textbox/code block/highlight block), tables, comments and page setup. Tables are compared as atomic units in the table_diffs field, where diff_type is added, deleted, modified (different dimensions) or modified_content (same dimensions but different cell contents, with cell_diffs listing the 1-based cell coordinates and text). Use the returned idx/range with resolve_document_structure to get a table's internal structure. When one document is clearly longer, its trailing paragraphs are not compared one by one but summarized in tail_summary.
Call information
- Tool slug
- tencent-docs.doc.compare_documents
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
compare_mode对比模式:content/format/all
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
other_file_id对比文档ID
other_file_url对比文档URL
version_info版本参数