create_rect
Add a rectangle to a .tldr file by specifying position, size, optional text and color. Returns its ID for further editing.
Instructions
Create a rectangle shape on the main page. Returns its id.
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>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>"
},
"name": "create_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .tldr file | |
| x | Yes | ||
| y | Yes | ||
| w | Yes | ||
| h | Yes | ||
| text | No | ||
| color | No |