figma_create_line
Create a line element in a Figma design by specifying start and end coordinates (X, Y). Optionally set line name, parent container, stroke color, and stroke weight.
Instructions
Create a line.
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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>"
},
"name": "figma_create_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endX | Yes | ||
| endY | Yes | ||
| name | No | Line | |
| startX | Yes | ||
| startY | Yes | ||
| parentId | No | ||
| strokeColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| strokeWeight | No |