TOOL API

doc.replace_image

Replaces an image in a Tencent Docs Word document; call get_images first and use its returned pos and image_url/attachment_id to fill idx and the old-image parameters. 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.replace_image
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

content

base64 编码后的图片内容,与 image_id 二选一;适合图片较小的场景

file_id

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

file_url

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

idxrequired

图片位置索引

image_id

图片的 image_id,与 content 二选一;适合图片较大的场景

old_attachment_id

旧附件图片ID

old_image_url

旧图片URL

version_info

版本参数