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.
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)