Set up a blog on a website
setup_blogGive an HTML v2 website a blog: Simplepages' editor writes the post layout (how every post looks, in the site's design) and the index page that lists posts. Run it once per site, before put_post. It doesn't write posts or change the site menu. Takes a minute or two. The index page starts as a draft and goes Live with the first publish_post. Answers alreadySetUp when the site has a blog layout.
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": "setup_blog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional wishes for the blog's look, e.g. "cards with a picture, two per row". | |
| title | No | The index page's heading. Defaults to "Blog". | |
| 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 | Yes | ||
| siteId | Yes | ||
| changes | Yes | What the editor wrote, in its own words. | |
| editUrl | No | ||
| summary | No | ||
| indexPath | Yes | The index page's source file, or null when there is none. | |
| collection | Yes | ||
| layoutPath | Yes | ||
| indexStatus | No | ||
| alreadySetUp | Yes | True when the site already had this blog's layout; nothing was written. |