get_jsx
Get JSX code for a design node and its descendants. Choose Tailwind classes or inline styles to match your styling workflow.
Instructions
Get the JSX code representation of a node and its descendants. Supports two styling formats: Tailwind CSS classes (default) or inline styles.
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_jsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| format | No | Style format: "tailwind" (default) uses Tailwind classes with inline fallback, "inline-styles" uses pure inline styles | |
| nodeId | Yes | The ID of the node to generate JSX from |