Read a blog post
get_postRead one blog post as it is saved now: its fields, its Markdown exactly as written, Draft or Live, and its contentHash. Read a post before updating it, and pass contentHash to put_post as base_hash.
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": {
"siteId": "<siteId>",
"slug": "<slug>"
},
"name": "get_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The post's URL name, e.g. "how-we-price" for /blog/how-we-price. Lowercase words joined by hyphens. | |
| siteId | Yes | The site (id from list_sites). | |
| collection | No | Which collection the posts are in. Defaults to "blog", so posts are at /blog/<slug>. Lowercase words joined by hyphens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The post's path on the site, e.g. "/blog/launch". | |
| slug | Yes | ||
| fields | Yes | The post's frontmatter: title, date, description, image, image_alt, author. | |
| siteId | Yes | ||
| status | Yes | Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published (publish_post does that once the site has an active domain, as does Publish in Simplepages). | |
| editUrl | Yes | Opens the post's page in the Simplepages editor. | |
| liveUrl | No | Its address on the site's custom domain, once the site is published. Null without a domain. | |
| markdown | Yes | The post's body, exactly as saved. | |
| collection | Yes | ||
| previewUrl | No | Shareable preview link, Draft or Live. Null until its page row exists. | |
| contentHash | Yes | The saved post's version. Pass it to put_post as base_hash to update this post. |