TOOL API

slide_add_line_shape

Insert a line or directional arrow on a slide, running from (x1,y1) to (x2,y2); use line_type=arrow for a single arrowhead, doubleArrow for both ends, or line for a plain line. This is the right tool for arrows between two points — slide_add_shape only supports fixed-direction rightArrow and leftArrow preset shapes. Coordinates and width are in points (pt, 1pt = 12700 EMU). 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_line_shape
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

color

颜色(RRGGBB);空串默认 000000

dash

线型:solid / dash / dot;空串默认 solid

file_id

文档ID,与 file_url 二选一

file_url

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

line_type

线形类型:line / arrow / doubleArrow;空串默认 line

page_index

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

width

线宽(pt);<= 0 取默认 1.0

x1

起点横坐标(磅 pt,1pt = 12700 EMU)

x2

终点横坐标(磅 pt,1pt = 12700 EMU)

y1

起点纵坐标(磅 pt,1pt = 12700 EMU)

y2

终点纵坐标(磅 pt,1pt = 12700 EMU)