fill_placeholders
Replace HTML template placeholders via direct text substitution or by expanding key points into formal paragraphs using an LLM API.
Instructions
用实际内容填充模板中的 XML 占位符。支持两种模式:(1)direct 直接替换文本;(2)expand 提供要点,调 LLM API 扩写为正式段落。这是编排层调度文生文 LLM 的核心工具。
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": {
"html": "<html>",
"content": "<content>"
},
"name": "fill_placeholders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | 模板 HTML 字符串 | |
| content | Yes | 填充内容。direct 为直接文本替换({tag: text}),expand 为要点扩写(调 LLM) | |
| llmConfig | No | LLM API 配置,仅 expand 模式需要 |