Skip to main content
Glama

set_fill_and_stroke

Configure fill and stroke colors or stroke weight for specified Figma nodes using unique IDs. Ideal for updating design elements programmatically within real-time workflows.

Instructions

Sets fill and/or stroke color(s) and/or stroke weight for one or more nodes.

Input Schema

NameRequiredDescriptionDefault
fillNoThe fill color(s) to set. Can be a single fill or an array of fills.
fillColorNoThe fill color to set as RGBA object.
nodeIdNoThe unique Figma node ID to update. Provide either nodeId or nodeIds, not both.
nodeIdsNoAn array of Figma node IDs to update. Provide either nodeId or nodeIds, not both.
strokeNoThe stroke color(s) to set. Can be a single stroke or an array of strokes.
strokeColorNoThe stroke color to set as RGBA object.
strokeWeightNoThe stroke weight to set in pixels.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fill": { "description": "The fill color(s) to set. Can be a single fill or an array of fills." }, "fillColor": { "description": "The fill color to set as RGBA object." }, "nodeId": { "description": "The unique Figma node ID to update. Provide either nodeId or nodeIds, not both.", "type": "string" }, "nodeIds": { "description": "An array of Figma node IDs to update. Provide either nodeId or nodeIds, not both.", "items": { "type": "string" }, "type": "array" }, "stroke": { "description": "The stroke color(s) to set. Can be a single stroke or an array of strokes." }, "strokeColor": { "description": "The stroke color to set as RGBA object." }, "strokeWeight": { "description": "The stroke weight to set in pixels.", "type": "number" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server