Get a screen's HTML
get_componentFetch a screen's generated HTML. Returns the screen in data, with the HTML at data.versions[].code. versions holds only the version the screen currently shows. Use allVersions for the full history, which can be large. The returned screenId is the value design takes. Use this for a build handoff, not to check whether a design run worked.
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": {
"projectId": "<projectId>",
"componentId": "<componentId>"
},
"name": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project id from an item's id in list_projects, or data.id in create_project. | |
| allVersions | No | Return every stored version instead of just the active one. Payloads grow quickly; leave it off unless you need the history. | |
| componentId | Yes | Component id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId. | |
| inlineIcons | No | Inline icons as SVG so the HTML works without loading Iconify. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |