TOOL API

slide_set_page_properties

Sets page-level properties on a slide in a Tencent Docs presentation, including background fill (solid color, image, or gradient) and visibility; only the properties you pass are changed. 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_set_page_properties
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

file_id

文档ID,与 file_url 二选一

file_url

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

fill_alpha

背景透明度 0~100,0=完全不透明(默认),100=完全透明;solid/gradient 路径写入 srgb alpha,image 路径写入 blip.alphaModFix.amt

fill_color

fill_type=solid 时的背景色(RRGGBB);空串清除背景

fill_type

背景填充类型:solid / image / gradient;省略不修改背景

gradient_angle

渐变角度(1/60000 度)

gradient_stops

fill_type=gradient 时的色标列表(至少 2 项),每项含 color(RRGGBB) 和 pos(0~100000)

image

fill_type=image 时的图片(data URI / 本地绝对路径,不接受远程 URL)

page_index

目标幻灯片 0-based 页索引

stretch

fill_type=image 时是否拉伸铺满整页;默认 true。设为 false 时图片按 tile_* 系列参数平铺(仅此时 tile_alignment / tile_flip / tile_tx / tile_ty / tile_sx / tile_sy 才生效)

tile_alignment

平铺对齐锚点(仅 fill_type=image && stretch=false 时生效);常用取值:tl / t / tr / l / ctr / r / bl / b / br(左上 / 上 / 右上 / 左 / 居中 / 右 / 左下 / 下 / 右下)

tile_flip

平铺翻转模式(仅 fill_type=image && stretch=false 时生效);OOXML 取值:none / x / y / xy

tile_sx

平铺水平缩放(1/100000;仅 fill_type=image && stretch=false 时生效)

tile_sy

平铺垂直缩放(1/100000;仅 fill_type=image && stretch=false 时生效)

tile_tx

平铺水平偏移(EMU;仅 fill_type=image && stretch=false 时生效)

tile_ty

平铺垂直偏移(EMU;仅 fill_type=image && stretch=false 时生效)

visible

可见性:true=显示,false=隐藏;省略不修改