
Image-Post (Xiaohongshu-Style) Automation with create_image_post
The image-post command: required title, up to 20 images, markdown extraction, and the dry-run habit.
Image-Post (Xiaohongshu-Style) Automation with create_image_post
WeChat image posts (小绿书-style) go through the same draft/add pipeline as articles, via a dedicated command. Publishing context.
The command
md2wechat create_image_post -t "Post title" --images a.jpg,b.jpg,c.jpg-t/--titleis required.-c/--contenttakes the body text (or stdin).--images a,b,clists image files;-m/--from-markdownextracts images from a Markdown file instead.- Up to 20 images per post.
--open-commentopens comments;--fans-onlyrestricts visibility;--dry-runpreviews the payload without submitting;-owrites the JSON result.
The dry-run habit
First run with --dry-run and read the payload: title, content, image count, comment and visibility flags. Only then submit the real call. Image-post creation is a WeChat side effect — it needs credentials and, where required, a whitelisted egress (Whitelist).
Pairs well with
- Image Generation to produce the images first (
generate_image, or plan mode with the host agent's tool). - Multi-Account Publishing with
--wechat-accountto target a specific account.
Failure notes
If --output fails to write after a successful creation, the command reports a non-retryable error with draft_created: true details — the post exists; only the local file write failed. Check the draft box before re-running.
More Posts

How to Use md2wechat-skill in Claude Code, Codex, and OpenCode
A validation-oriented comparison of candidate md2wechat-skill setup paths for Claude Code, Codex, and OpenCode, with install steps, discovery commands, and reusable prompts.

md2wechat 3.x for Agents: What Changed
From the 3.0 single-source layout catalog through 3.2 preflight and the official OpenClaw installer to 3.4 subject-reference images.

How to Create a WeChat Draft from Generated Content
A step-by-step guide to moving generated content through formatting, image handling, and draft creation for WeChat.
Newsletter
Join the community
Subscribe to our newsletter for the latest news and updates