set_padding
Adjust padding values for auto-layout frames in Figma using specific top, right, bottom, and left padding inputs. Modify element spacing programmatically with precise control.
Instructions
Set padding values for an auto-layout frame in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nodeId | Yes | The ID of the frame to modify | |
paddingBottom | No | Bottom padding value | |
paddingLeft | No | Left padding value | |
paddingRight | No | Right padding value | |
paddingTop | No | Top padding value |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"nodeId": {
"description": "The ID of the frame to modify",
"type": "string"
},
"paddingBottom": {
"description": "Bottom padding value",
"type": "number"
},
"paddingLeft": {
"description": "Left padding value",
"type": "number"
},
"paddingRight": {
"description": "Right padding value",
"type": "number"
},
"paddingTop": {
"description": "Top padding value",
"type": "number"
}
},
"required": [
"nodeId"
],
"type": "object"
}