工具 API
doc. replace_ image
替换 Word 文档中的图片,必须同时提供三组参数:1) idx(图片位置)2) old_image_url 或 old_attachment_id(定位旧图片)3) 新图片来源(按下方优先级三选一)。建议先用 get_images 获取图片信息,再用返回的 pos 和 image_url/attachment_id 填入对应参数(DOC) 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 积分
调用信息
- 工具标识
- tencent-docs.doc.replace_image
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
contentbase64 编码后的图片内容,与 image_id 二选一;适合图片较小的场景
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
idx必填图片位置索引
image_id图片的 image_id,与 content 二选一;适合图片较大的场景
old_attachment_id旧附件图片ID
old_image_url旧图片URL
version_info版本参数