analyze_and_suggest
Analyzes Markdown documents for heading hierarchy, format errors, content issues, and Chinese punctuation problems, then generates a structured report with line-specific suggestions.
Instructions
Analyze a Markdown document and generate modification suggestions.
Performs semantic analysis across six categories:
Heading hierarchy — skipped levels, missing/multiple H1, long titles
Required 公文 sections — expected elements in Chinese government docs
Format issues — broken image references, HTML table problems
Content issues — empty sections, placeholder text, duplicates, long paragraphs
Numbered list continuity — gaps and restarts in ordered lists
Chinese punctuation — half-width marks, missing sentence endings
Generates a structured report at /-修改建议.md with findings organized by category, each showing line numbers, severity, and specific suggestions.
Args: input_path: Absolute path to the input Markdown file.
Returns: Summary string with input path, suggestions file path, and issue count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |