set_magnets
Define connection points on a shape by setting magnet positions. Magnets specify where lines attach relative to the shape's center.
Instructions
Set magnet (connection) points on a shape. Magnets define where lines can attach.
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": {
"id": "<id>",
"magnets": "<magnets>"
},
"name": "set_magnets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Shape ID | |
| magnets | Yes | Magnet positions relative to shape center. Use (0, -0.5) for top, (0, 0.5) for bottom, (-0.5, 0) for left, (0.5, 0) for right. |