Set a page's SEO values
set_seoSets the SEO values of one page or post: the title and description that search results show, the canonical address, and whether search engines may list the page. Send post_id as get_state lists it, base_version from your latest read of the site, and only the values that change; the others stay as they are. Read the post's values with get_state scope seo first. Set noindex to true only when your user asks, because it hides the page from search results. A canonical address on another website is not written: the result lists it for your user. It returns the change set id and the resulting state_version, and rollback_change_set can undo it. A stale_state_version error means the site changed after your read: read again. No content check runs on what you write, so your user owns the wording. For any other edit of a page, use apply_change_set.
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": {
"post_id": "<post_id>",
"siteId": "<siteId>",
"base_version": "<base_version>"
},
"name": "set_seo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The SEO title that search results show. | |
| siteId | Yes | Site id from list_sites or create_site. | |
| noindex | No | True asks search engines to leave the page out of their results; false lets them list it. | |
| post_id | Yes | The id of the page or post, as get_state lists it. | |
| canonical | No | An absolute https address on this website, or the empty text to use WordPress's own address. | |
| description | No | The SEO description that search results show. | |
| base_version | Yes | The state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again. |