connect
Create an arrow connection between two shapes in a tldraw file. Binding-driven positioning links source and target shapes. Returns arrow and binding IDs for further use.
Instructions
Connect two shapes with an arrow. Arrow position is binding-driven (start/end stored as 0,0 fallback). Returns arrow id + binding ids.
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": {
"file": "<file>",
"fromId": "<fromId>",
"toId": "<toId>"
},
"name": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .tldr file | |
| fromId | Yes | Source shape id | |
| toId | Yes | Target shape id | |
| text | No |