monorail_css
Extract CSS and raw paint data from a Figma node for design-to-code translation, including fills, strokes, effects, gradients, and blend modes.
Instructions
Extract CSS and raw paint data from a Figma node. Returns Figma's getCSSAsync() output (same as 'Copy as CSS') plus raw fills, strokes, effects with full gradient data and blend modes. Use for design-to-code translation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "monorail_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | No | Figma node ID to extract CSS from. If omitted, uses the currently selected node. | |
| timeout_ms | No | The most this call may take, in ms (default 90000; 1000–600000): waiting its turn behind other sessions' requests plus the plugin's own work. A big node can take longer. The call returns by about timeout_ms + 2s (+ up to 3s if the proxy link is reconnecting), with an error naming the limit that ran out. While it runs, other sessions' requests queue behind it. |