get_html
Convert Figma nodes into structured HTML using specified formats (semantic, div-based, webcomponent) and CSS handling modes (inline, classes, external). Outputs HTML content for seamless design-to-development workflows.
Instructions
Generates HTML structure from Figma nodes.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the generated HTML string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>"
},
"name": "get_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cssMode | No | Optional. The CSS handling mode: "inline", "classes", or "external". Defaults to "classes". | classes |
| format | No | Optional. The HTML output format: "semantic", "div-based", or "webcomponent". Defaults to "semantic". | semantic |
| nodeId | Yes | The unique Figma node ID to generate HTML from. Must be a string in the format '123:456'. |