Make template
make_templateTurn copy-pasted sibling elements (rows, menu items, cards with the same structure) into one : the first element becomes the item markup, what differs becomes {{fields}} and the values become the template's items. Returns the template'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_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Sibling elements with the same structure. | |
| key | No | data-each name, e.g. "rows" (derived by default). | |
| fileId | Yes |