add_connector
Draw straight or bezier connectors between shapes or points on a slide, automatically calculating OOXML bounding-box geometry and appending the connector in the chosen z-order.
Instructions
Draw a line or curved connector between two shapes or points, with all OOXML bounding-box math (off/ext/flips, bezier path) computed for you. For bezier curves the path leaves and arrives horizontally — no flip attributes are used, avoiding the custGeom double-mirror pitfall. The shape is appended on top of the slide.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slide": "<slide>",
"from": "<from>",
"to": "<to>"
},
"name": "add_connector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Endpoint: {shapeId} or {x, y} | |
| from | Yes | Endpoint: {shapeId} or {x, y} | |
| color | No | Line color as RRGGBB hex, e.g. "EF463C". Default EF463C. | |
| curve | No | straight (default) or bezier (horizontal tangents at both ends). | |
| slide | Yes | Slide number, 1-based | |
| zOrder | No | "top" (default) appends above all shapes; "bottom" inserts below all shapes. | |
| alphaPct | No | Opacity in percent (0-100). Omit for fully opaque. | |
| weightPt | No | Line width in points. Default 1. | |
| beforeShapeId | No | Insert the connector directly below this shape ID (z-order). Overrides zOrder. | |
| presentationId | No | Target presentation ID. Optional when only one presentation is connected. |