md2wechat Agent API markmd2wechat Agent API
  • Docs
  • Features
  • Themes
  • Editor
  • Blog
  • Pricing
  • Examples
  • Skills
  • Contact
Image-Post (Xiaohongshu-Style) Automation with create_image_post
2026/09/05

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/--title is required.
  • -c/--content takes the body text (or stdin).
  • --images a,b,c lists image files; -m/--from-markdown extracts images from a Markdown file instead.
  • Up to 20 images per post.
  • --open-comment opens comments; --fans-only restricts visibility; --dry-run previews the payload without submitting; -o writes 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-account to 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.

All Posts

Author

avatar for geekjourney
geekjourney

Categories

  • Workflow
Image-Post (Xiaohongshu-Style) Automation with create_image_postThe commandThe dry-run habitPairs well withFailure notes

More Posts

How to Use md2wechat-skill in Claude Code, Codex, and OpenCode
Integration

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.

avatar for geekjourney
geekjourney
2026/03/21
md2wechat 3.x for Agents: What Changed
API

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.

avatar for geekjourney
geekjourney
2026/09/05
How to Create a WeChat Draft from Generated Content
Workflow

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.

avatar for geekjourney
geekjourney
2026/03/12

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

md2wechat Agent API markmd2wechat Agent API

The official md2wechat API, docs, CLI, and skill entry points for Markdown to WeChat publishing workflows.

GitHubX (Twitter)
Product
  • Quickstart
  • Features
  • Themes
  • Pricing
  • Contact
Docs
  • Auth
  • OpenAPI
  • llms.txt
Ecosystem
  • Examples
  • Skills
  • md2wechat-lite
© 2026 md2wechat Agent API. All Rights Reserved.