Make component
make_componentMake a component shared between screens. ids[0] becomes the main component (or already is one); the other elements, with the same structure (typically the same header, nav or footer copied into other screens), become its instances: what differs between them becomes props. Returns a summary (name, id, instances, props, element count, named layers); html: true adds the component's HTML.
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": {
"fileId": "<fileId>",
"ids": "<ids>"
},
"name": "make_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Main component first, then its copies. | |
| html | No | Also return the component's HTML with its data-ids, which did not change: ids returned earlier still apply. | |
| name | No | Component name, e.g. "AppHeader" (derived by default). | |
| fileId | Yes |