TOOL API

slide_set_shape_properties

Modifies the properties of one or more shapes on a slide, either individually or in bulk. Use single-shape mode with shape_id, one-to-one batch mode with a shapes array, or many-to-one batch mode with shape_ids plus top-level properties; unspecified properties stay unchanged. Picture shapes support fill_alpha for overall image transparency but not fill_color, and tables, charts and other non-shape types only support position, size and rotation. 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_shape_properties
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

border_alpha

边框透明度,百分比 0-100(0=完全不透明,100=完全透明)。设置 border_color 时若不传则默认 0。普通形状和图片形状均支持

border_color

十六进制边框色(如 "000000")。传 "none" 移除边框。不传则保持不变。普通形状和图片形状均支持

border_dash

边框线型:solid/dot/dash/lgDash/dashDot/lgDashDot/lgDashDotDot/sysDash/sysDot/sysDashDot/sysDashDotDot。不传则保持不变

border_width

边框宽度,单位磅(1pt=12700 EMU)。不传则保持不变

file_id

文档ID,与 file_url 二选一

file_url

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

fill_alpha

填充透明度,百分比 0-100(0=完全不透明,100=完全透明)。对普通形状控制 solidFill 透明度;对图片形状控制图片整体透明度(alphaModFix)。设置 fill_color 时若不传则默认 0

fill_color

十六进制填充色(如 "FF0000")。传 "none" 移除填充。不传则保持不变。图片形状不支持此属性

h

新的高度,单位磅。不传则保持不变

page_index

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

rotation

旋转角度(度),如 90 表示顺时针旋转 90°。不传则保持不变

shape_id

单形状模式 (A):要修改的形状 ID

shape_ids

批量多对一模式 (C):形状 ID 数组,所有形状统一应用顶层属性。与 shape_id、shapes 互斥

shapes

批量一对一模式 (B):对象数组,单元素字段:shape_id / fill_color / fill_alpha / border_color / border_alpha / border_width / border_dash / x / y / w / h / rotation。与 shape_id、shape_ids 互斥

w

新的宽度,单位磅。不传则保持不变

x

新的 X 坐标,单位磅。不传则保持不变

y

新的 Y 坐标,单位磅。不传则保持不变