List blog posts
list_postsList the posts of a website's blog, newest first: slug, title, date, Draft or Live, and each post's contentHash (pass it to put_post as base_hash to update that post). Says whether the blog is set up.
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>"
},
"name": "list_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
|---|---|---|---|
| note | No | ||
| count | Yes | ||
| posts | Yes | ||
| setUp | Yes | Whether the site has this blog's layout. False: run setup_blog first. | |
| siteId | Yes | ||
| truncated | Yes | True when the blog has more posts than one list returns. | |
| collection | Yes |