set_grid
Modify layout grids on Figma nodes (frames, components, instances) by creating, updating, or deleting them via Conduit. Streamline design alignment, column/row patterns, and visibility settings for precise control.
Instructions
Create, update, or delete one or more layout grids on Figma nodes (FRAME, COMPONENT, INSTANCE).
Returns: Array of result objects for each operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
entries | No | ||
entry | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"entries": {
"items": {
"$ref": "#/properties/entry"
},
"type": "array"
},
"entry": {
"additionalProperties": false,
"properties": {
"delete": {
"type": "boolean"
},
"gridIndex": {
"type": "number"
},
"nodeId": {
"type": "string"
},
"properties": {
"additionalProperties": false,
"properties": {
"alignment": {
"enum": [
"MIN",
"MAX",
"STRETCH",
"CENTER"
],
"type": "string"
},
"color": {
"additionalProperties": false,
"properties": {
"a": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"b": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"g": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"r": {
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"r",
"g",
"b"
],
"type": "object"
},
"count": {
"type": "number"
},
"gutterSize": {
"type": "number"
},
"offset": {
"type": "number"
},
"pattern": {
"enum": [
"GRID",
"COLUMNS",
"ROWS"
],
"type": "string"
},
"sectionSize": {
"type": "number"
},
"visible": {
"type": "boolean"
}
},
"required": [
"pattern"
],
"type": "object"
}
},
"required": [
"nodeId"
],
"type": "object"
}
},
"type": "object"
}