set_guide
Create or remove guides on a Figma page along the X or Y axis. Specify offset and axis to add or delete guides efficiently, returning an array of operation results.
Instructions
Add or delete one or more guides on the current Figma page.
Returns: Array of result objects for each operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
guide | No | ||
guides | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"guide": {
"additionalProperties": false,
"properties": {
"axis": {
"enum": [
"X",
"Y"
],
"type": "string"
},
"delete": {
"type": "boolean"
},
"offset": {
"type": "number"
}
},
"required": [
"axis",
"offset"
],
"type": "object"
},
"guides": {
"items": {
"$ref": "#/properties/guide"
},
"type": "array"
}
},
"type": "object"
}