Replace a post's body
replace_postOn one site of the account, named in site. The whole body from Markdown, in the same forms create_post takes; blocks keep their rows when their fences keep their uuid comment. Send the version that get_post (or your last write) answered: a post saved since then refuses the write. The write is a revision the writer can undo. To add a picture, put it into the library with upload_media first, then paste the Markdown it answers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"post_id": "<post_id>",
"markdown": "<markdown>",
"version": "<version>"
},
"name": "replace_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site to work on, as list_sites names it | |
| post_id | Yes | ||
| version | Yes | The post's version from get_post or your last write | |
| markdown | Yes |