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 的核心工具。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | 模板 HTML 字符串 | |
| content | Yes | 填充内容。direct 为直接文本替换({tag: text}),expand 为要点扩写(调 LLM) | |
| llmConfig | No | LLM API 配置,仅 expand 模式需要 |