Skip to main content
Glama

Create line

figma_create_line
Idempotent

Draw a straight line in Figma for dividers, connectors, arrows, underlines, or decorative strokes. Set length, angle, and end caps to place it precisely.

Instructions

A straight line: dividers, connectors, arrows, underlines, decorative strokes. length in px from (x, y), turned by angle degrees (0 = to the right, 90 = up). cap decorates both ends: arrow, arrow-filled, triangle, circle, diamond, round, square. For a divider inside an auto-layout, a 1 px figma_create_rectangle with sizing: { horizontal: "fill" } stretches with the column; a line keeps its length. Editors: Design; unverified: FigJam, Slides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
capNo
nameNo
angleNoDegrees, default 0.
colorNoDefault #000000.
lengthYes
weightNoStroke weight in px, default 1.
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
parentIdNo
dashPatternNoDash and gap lengths, e.g. [4, 4].
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this is a non-readOnly, non-destructive, idempotent creation tool. The description adds useful behavioral context beyond annotations: cap decorates both ends, a line keeps its length while a filled rectangle stretches, and editor compatibility is given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, with use cases first and geometry details following in a logical order. Every sentence earns its place, including the auto-layout alternative and editor support note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a create tool with no output schema and annotations covering safety and idempotency, the description gives enough to invoke the core line creation correctly. It is missing some placement and styling details, such as default parent behavior, but remains largely complete for the primary use case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains key geometry and appearance parameters such as length, angle, cap, and the x/y origin, which adds meaning beyond the schema. However, with 12 parameters and only 50% schema description coverage, several parameters such as parentId, name, color, weight, dashPattern, and idempotencyKey are not covered or only partially covered by the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create line') and immediately lists concrete use cases: dividers, connectors, arrows, underlines, decorative strokes. It also distinguishes the tool from figma_create_rectangle for auto-layout dividers, so an agent can tell it apart from siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use a line versus a rectangle in auto-layout contexts, and notes editor support for Design, FigJam, and Slides. It provides clear usage context but does not explicitly exclude or compare against other nearby tools such as figma_create_connectors or figma_create_vector.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools