Edit a post
edit_postOn one site of the account, named in site. One change to a post's Markdown: find must match exactly once in the post as get_post shows it (include enough surrounding text to be unique), and is replaced by replace. The whole body is re-read after, so a block fence changed here changes its block, and a {{members_count}} stays a live value. The write is a revision the writer can undo. For many changes, replace_post. 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>",
"find": "<find>",
"replace": "<replace>"
},
"name": "edit_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text that appears exactly once in the post's Markdown | |
| site | Yes | The site to work on, as list_sites names it | |
| post_id | Yes | ||
| replace | Yes | What takes its place; empty removes it |