Get code for a layer
get_codeGenerates CSS, HTML+CSS, React, Leptos, SwiftUI, or Jetpack Compose code for a specified layer and returns the whole layer tree for HTML, React, and Leptos.
Instructions
The code the app generates for a layer: CSS, HTML+CSS, React, Leptos, SwiftUI or Jetpack Compose (a whole layer tree for html/react/leptos).
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": "get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| nodeId | No | ||
| language | No | ||
| rootFontSize | No |