create_line
Generates line nodes in Figma documents using start and end coordinates. Supports single or multiple lines, optional parent node ID, stroke color, and stroke weight. Returns created line node IDs for further use.
Instructions
Creates one or more line nodes in the specified Figma document. Accepts either a single line config (via 'line') or an array of configs (via 'lines'). Optionally, you can provide a parent node ID, stroke color, and stroke weight.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created line node ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
line | No | A single line configuration object. Each object should include coordinates, dimensions, and optional properties for a line. | |
lines | No | An array of line configuration objects. Each object should include coordinates, dimensions, and optional properties for a line. |