工具 API

upload_image

上传图片,将图片的 base64 编码上传至腾讯文档,返回有效期为一天的 imageID,可用于智能表格,智能文档等场景的图片字段。重要:image_base64 参数必须传入图片文件的实际 base64 编码数据,不要传入文件路径(如 /path/to/image.png)或 URL 地址 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.upload_image
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

file_name必填

图片文件名,用于识别图片类型,例如:image.png、photo.jpg,支持 .png/.jpg/.jpeg/.gif/.bmp/.webp/.svg 后缀

image_base64必填

图片的 base64 编码内容,支持 PNG、JPG、GIF、BMP、WEBP 等常见格式,图片大小不超过 10MB。注意:此处必须传入图片文件的实际 base64 编码数据(如 iVBORw0KGgo...),不要传入文件路径(如 /path/to/image.png)或 URL 地址