feat: add wordvibe_build_page (Word Page Builder over MCP)

Wraps the site tool wpb_build_page: build or update a Word Page from {kind, html} sections. The page lands as a native Word Page (payload in post meta, builder-rendered), so it stays editable and undoable in the builder. Also documents the builder tools in the bundled skill and README.
This commit is contained in:
2026-09-22 01:59:54 +03:00
parent ab1cfc88da
commit 6eeb8b9087
6 changed files with 103 additions and 0 deletions
+43
View File
@@ -13,6 +13,49 @@ _SITE = {
),
}
BUILD_PAGE = {
"name": "wordvibe_build_page",
"description": (
"Build or update a page in the site's Word Page Builder (WPB) from section HTML. Each "
"section is wrapped automatically in <section data-wpb-section=\"kind\" data-wpb-id=\"sec-…\">, "
"so the page opens natively in the builder and stays editable/undoable there. Use this to "
"publish a landing page, or to rebuild a page's sections, without a browser."
),
"parameters": {
"type": "object",
"properties": {
"title": {"type": "string", "description": "Page title."},
"sections": {
"type": "array",
"description": (
"Ordered list of sections. Each item: {kind, html} — kind is a kebab-case section "
"name (hero, features, pricing, testimonials, faq, cta, footer, gallery, contact, "
"about, services, custom); html is the section's inner HTML (inline styles are fine)."
),
"items": {
"type": "object",
"properties": {
"kind": {"type": "string", "description": "Section kind, e.g. 'hero'."},
"html": {"type": "string", "description": "Inner HTML for the section."},
},
"required": ["kind", "html"],
},
},
"slug": {"type": "string", "description": "URL slug (optional)."},
"status": {
"type": "string",
"description": "draft, publish, pending or private (default: draft).",
},
"post_id": {
"type": "integer",
"description": "Existing page ID to update; omit to create a new page.",
},
"site": _SITE,
},
"required": ["title", "sections"],
},
}
SITES = {
"name": "wordvibe_sites",
"description": (