Skip to main content
Glama

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

NameRequiredDescriptionDefault
lineNoA single line configuration object. Each object should include coordinates, dimensions, and optional properties for a line.
linesNoAn array of line configuration objects. Each object should include coordinates, dimensions, and optional properties for a line.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "line": { "additionalProperties": false, "description": "A single line configuration object. Each object should include coordinates, dimensions, and optional properties for a line.", "properties": { "parentId": { "description": "Figma node ID of the parent.", "type": "string" }, "strokeColor": { "description": "Stroke color for the line." }, "strokeWeight": { "description": "Stroke weight for the line.", "type": "number" }, "x1": { "description": "X coordinate for the start point. Example: 10", "type": "number" }, "x2": { "description": "X coordinate for the end point. Example: 110", "type": "number" }, "y1": { "description": "Y coordinate for the start point. Example: 20", "type": "number" }, "y2": { "description": "Y coordinate for the end point. Example: 20", "type": "number" } }, "required": [ "x1", "y1", "x2", "y2" ], "type": "object" }, "lines": { "description": "An array of line configuration objects. Each object should include coordinates, dimensions, and optional properties for a line.", "items": { "additionalProperties": false, "properties": { "parentId": { "$ref": "#/properties/line/properties/parentId" }, "strokeColor": { "$ref": "#/properties/line/properties/strokeColor" }, "strokeWeight": { "$ref": "#/properties/line/properties/strokeWeight" }, "x1": { "$ref": "#/properties/line/properties/x1" }, "x2": { "$ref": "#/properties/line/properties/x2" }, "y1": { "$ref": "#/properties/line/properties/y1" }, "y2": { "$ref": "#/properties/line/properties/y2" } }, "required": [ "x1", "y1", "x2", "y2" ], "type": "object" }, "type": "array" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server