set_post_body
Replace a draft's body with structured Substack content, including headings, lists, links, code blocks, images, buttons, and paywall. Verify the update by reviewing stored content nodes.
Instructions
replace the body of a draft with a Substack document. This is the only way to write structured content — headings, lists, links, code blocks, images, buttons and a paywall. Create the draft first with create_draft_post, then call this with its id. The result reports how many nodes of each type were stored, so a caller can confirm that what it asked for is there. An image must already be hosted by Substack: this cannot upload one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The post body as a Substack ProseMirror document. | |
| draft_id | Yes | The numeric id of the draft to write, as returned by list_posts (`id`) or create_draft_post (`draft_id`). |