tool_write_blog
Packages blog content into a CSDN-ready Markdown file with YAML front matter and saves it to local drafts for later publishing.
Instructions
Package blog content into a CSDN-ready markdown file and save it.
Adds YAML front-matter (title, summary, tags, category, keywords, style,
visibility, timestamps) and writes the file to the local drafts folder.
The publish_csdn tool reads this same file later. If content already has
front-matter, the arguments override individual fields. If summary is
empty, it is auto-extracted from the first paragraph.
Args: topic: Blog title (used as H1 and filename slug if filename is empty). content: Markdown body. May include leading front-matter (--- ... ---). keywords: SEO keywords for the front-matter. tags: CSDN tags (3-5 recommended). category: CSDN category, e.g. "后端", "前端", "运维", "AI". summary: Article summary; auto-extracted if empty. style: Writing style (informational; stored in front-matter). visibility: "public", "private", or "fans". filename: Override filename (without .md). Auto-generated if empty. overwrite: If True, overwrite an existing draft with the same name.
Returns: dict with {ok, file_path, filename, title, summary, tags, category, visibility, bytes}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| style | No | technical | |
| topic | Yes | ||
| content | Yes | ||
| summary | No | ||
| category | No | ||
| filename | No | ||
| keywords | No | ||
| overwrite | No | ||
| visibility | No | public |