TOOL API

slide_add_image

Inserts an image into a specific slide of a Tencent Docs presentation. Prefer inserting large images via the local insert_image.py script (HTTP call to the MCP endpoint) or by uploading first and passing image_id; pass base64 content only for small images. Images must be 10MB or smaller and in PNG, JPG, JPEG, GIF, BMP, WEBP, or SVG format. Always scale width and height proportionally to the original aspect ratio (w / h must equal the original width / height); never stretch on one axis only. Call slide_get_page_info first to get the actual canvas size (default 16:9 = 960 x 540 pt) before choosing the placement box. 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.slide_add_image
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

content

图片的 base64 编码内容(不含 data URI 前缀,兜底方式三,仅适合小图);与 image_id 二选一。大图请优先使用本工具描述中【方式一】的本地脚本(slide_add_image 工具名),或【方式二】通过 upload_image / 开放平台 OpenAPI 上传后传 image_id

file_id

文档ID,与 file_url 二选一

file_url

在线幻灯片URL,与 file_id 二选一

h

图片高度(磅 pt,1pt = 12700 EMU);仅值为 0 或未传时使用图片自身原始高度,负值不会触发原始高度回退

image_id

已上传图片的加密 ID(有效期一天,方式二备选),与 content 二选一。可通过 tencent-docs MCP 的 upload_image 工具上传后获取,或通过腾讯文档开放平台 OpenAPI 获取。详细获取流程参见工具描述。

page_index

目标幻灯片页索引,从 0 开始

w

图片宽度(磅 pt,1pt = 12700 EMU);仅值为 0 或未传时使用图片自身原始宽度,负值不会触发原始宽度回退

x

图片左上角横坐标(磅 pt,1pt = 12700 EMU)

y

图片左上角纵坐标(磅 pt,1pt = 12700 EMU)