create_arrow
Add an arrow to a Mural to show connections or flows. Define its position, path, type, tip, style, and labels; optionally snap it to start and end widgets.
Instructions
Create an arrow (connector) widget on a mural.
Args:
mural_id: The mural ID.
x: Horizontal position in px.
y: Vertical position in px.
width: Width of the bounding box in px.
height: Height of the bounding box in px.
points: Array of {x, y} coordinate objects defining the arrow path (min 2 points).
arrow_type: "straight" (default), "curved", or "orthogonal".
tip: "single" (default), "double", or "no tip".
start_ref_id: ID of the widget the arrow starts from (snaps to it).
end_ref_id: ID of the widget the arrow ends at (snaps to it).
style: { strokeColor (hex+alpha), strokeStyle ("solid"|"dashed"|"dotted-spaced"|"dotted"), strokeWidth (1-7) }.
label: { format: {color, fontFamily, bold, italic, textAlign, fontSize}, labels: [{x, y, height, width, text}] }.
parent_id: ID of parent area widget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| tip | No | ||
| label | No | ||
| style | No | ||
| width | Yes | ||
| height | Yes | ||
| points | Yes | ||
| mural_id | Yes | ||
| parent_id | No | ||
| arrow_type | No | ||
| end_ref_id | No | ||
| start_ref_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |