parse_source_content
Parse raw Markdown or text into structured content for template filling. Supports direct regex or LLM extraction, returning image prompts and recommended template slug.
Instructions
将原始 Markdown/正文解析为模板填充所需的结构化 content 对象。支持 direct(纯正则)和 llm(调 LLM 提取)两种模式。编排层调用此工具后,直接将返回的 content 传给 fill_placeholders。同时返回图片提示词和推荐的模板 slug。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 解析模式:direct=纯正则解析,llm=调 LLM 提取(需 llmConfig) | |
| llmConfig | No | LLM API 配置,仅 llm 模式需要 | |
| sourceText | Yes | 原始 Markdown 或纯文本正文内容 | |
| templateSlug | No | 强制指定模板 slug;留空则自动推荐最匹配的模板 |