TOOL API

doc.insert_attachment

Inserts an attachment into a Word document at the specified position. This is the follow-up to pre_insert_attachment: first call pre_insert_attachment to get upload_url and object_key, upload the file via HTTP PUT, then call this tool to finish inserting the attachment. 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.insert_attachment
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

classify

附件分类

file_id

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

file_name

文件名

file_type

文件类型

file_url

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

idx

插入位置索引

layout_type

布局类型

object_key

文件标识key

size

文件大小

text

显示文本

upload_success

是否上传成功

version_info

版本参数