TOOL API
slide_ add_ shapes
Inserts multiple shapes into the same slide in one call. Each shape must set at least one of fill_color or border_color, otherwise it is invisible to users and the call is rejected. This tool only supports the rightArrow and leftArrow preset arrow blocks; to draw arrow lines from a start point to an end point, use slide_add_line_shapes with line_type=arrow or doubleArrow instead. When the user says "add an arrow", first confirm whether they mean a line arrow or a shape arrow. 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.
Call information
- Tool slug
- tencent-docs.slide_add_shapes
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
file_id文档ID,与 file_url 二选一
file_url在线幻灯片URL,与 file_id 二选一
page_index目标幻灯片页索引,从 0 开始
shapes待插入的形状列表(对象数组)。单元素字段:x / y / w / h / shape_type / fill_color / fill_alpha / border_color / border_dash / border_width / border_alpha。shape_type 可选 rect / ellipse / triangle / rightArrow / leftArrow 等;方向性箭头线条请改用 slide_add_line_shapes