Create flowchart
create_flowchartDraw a flowchart in the open Figma file by sending just nodes and edges; the server lays out shapes top to bottom and sizes each one to fit its label.
Instructions
Draw a flowchart in the open Figma file.
Send only the structure: nodes (id, label, type) and edges (from, to, optional label). Never send coordinates or sizes. The server lays the chart out top to bottom, and the plugin sizes each shape to fit its label.
How to model a flow:
Begin with one "start" node. End every path at an "end" node.
Use "process" for actions and "input_output" for data going in or out, such as user input, a message shown to the user, or reading a file.
Every yes/no question or branch point is a "decision" node. Phrase its label as a question ("Password valid?") and give each outgoing edge a label ("Yes", "No").
Loops are fine: point an edge back to an earlier node.
Each call adds a new frame, named after the title, to the right of earlier charts. The figma-flow plugin must be running in Figma (check with get_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Arrows between nodes, by node id. Pointing back to an earlier node makes a loop. | |
| nodes | Yes | Every step in the flow. No coordinates or sizes. | |
| title | Yes | Chart title; also the name of the Figma frame. |