List WordPress sites
list_wordpress_sitesLists the sites the WordPress.com login connected to a workspace can see (WordPress.com sites and self-hosted sites connected through Jetpack). Use this to find the siteId to pass in update_post / batch_update_posts platform_settings for a WordPress post (omit it to post to the primary site). Returns id, name, url, jetpack, private, can_publish and primary per site; only sites with can_publish true accept posts. Pass site_id to also get that site's categories (id, name, parent), for the optional categoryIds.
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": {
"workspace_id": "<workspace_id>"
},
"name": "list_wordpress_sites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Optional. A site id from this list; the response then includes its categories. | |
| workspace_id | Yes | Workspace whose WordPress connection to use. Get one from list_workspaces. |