load_template
Loads a template by unique identifier, parses its HTML to extract placeholder tags and icon references, enabling automated content preparation for page assembly.
Instructions
加载指定模板的完整 HTML 内容,解析并返回所有占位符(XML 标签)和图标引用清单。编排层根据返回的占位符列表准备内容数据。
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": {
"slug": "<slug>"
},
"name": "load_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | 模板的唯一标识(slug),如 "green-infographic-bid-a4-landscape" | |
| templatesDir | No | 模板目录的绝对路径,默认为项目 templates/ |