connect_shapes
Connect two shapes with an automatically routed line or arrow. Supports labels, arrow heads, stroke color, and line style.
Instructions
Connect two shapes with a line/arrow. The line automatically routes between the shapes.
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": {
"source_id": "<source_id>",
"target_id": "<target_id>"
},
"name": "connect_shapes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Text label on the line | |
| head_type | No | Arrow at target end (default: "FilledArrow") | |
| line_type | No | Line routing style | |
| source_id | Yes | Source shape ID | |
| tail_type | No | Arrow at source end (default: "" = none) | |
| target_id | Yes | Target shape ID | |
| stroke_color | No | ||
| stroke_thickness | No |