create_line
Creates a line in Figma using start and end coordinates, with optional stroke color, weight, name, and parent node placement.
Instructions
Create a new line in Figma
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": "create_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endX | Yes | Ending X position | |
| endY | Yes | Ending Y position | |
| name | No | Optional name for the line | |
| startX | Yes | Starting X position | |
| startY | Yes | Starting Y position | |
| parentId | No | Optional parent node ID | |
| strokeColor | No | Stroke color in RGBA format | |
| strokeWeight | No | Stroke weight |