Tools
| Tool | Type | Capability | What it does |
|---|---|---|---|
site-context |
Read | edit_posts |
Theme, page templates and design presets |
list-pages |
Read | edit_pages |
Editable pages, paginated |
get-page |
Read | edit_pages |
A page’s raw block content and its content_hash |
save-page |
Write | edit_pages |
Creates or updates a page |
list-posts |
Read | edit_posts |
Editable blog posts, paginated |
get-post |
Read | edit_posts |
A post’s content, categories, tags and content_hash |
save-post |
Write | edit_posts |
Creates or updates a blog post |
list-terms |
Read | edit_posts |
Categories and tags |
save-term |
Write | manage_categories |
Creates a category or tag |
search-content |
Read | edit_posts |
Searches posts and pages, drafts included |
list-comments |
Read | moderate_comments |
Comments by status |
moderate-comment |
Write, off by default | moderate_comments |
Approves, holds, marks as spam or trashes a comment |
reply-comment |
Write, off by default | moderate_comments |
Replies to a comment |
list-blocks |
Read | edit_posts |
Blocks available in the inserter |
list-patterns |
Read | edit_posts |
Registered block patterns |
list-media |
Read | upload_files |
Images in the media library, paginated |
site-health |
Read | update_plugins |
Versions and available updates |
To connect at all, the user also needs to be able to edit pages (Editors and Administrators). The AI only sees the tools its user can use and an administrator has left enabled.
Every tool runs as the connected user and goes through WordPress’s own REST endpoints, so per-post permissions apply.
site-context
Section titled “site-context”No parameters. Returns the site name, URL and language, the active theme (and whether it’s a block theme), the page templates, the layout widths (contentSize, wideSize) and the presets: colors, font_sizes, font_families and spacing.
list-pages
Section titled “list-pages”| Parameter | Type | Default |
|---|---|---|
search |
string | — |
page |
integer ≥ 1 | 1 |
per_page |
integer, 1–50 | 20 |
Returns pages (each with id, title, status and link), total and total_pages. It includes published, draft, pending, private and scheduled pages. A page number past the last one returns an empty list.
get-page
Section titled “get-page”| Parameter | Type |
|---|---|
id |
integer, required |
Returns id, title, content (raw serialized blocks), content_hash, excerpt, status, slug, link, template, modified_gmt and edit_url.
content_hash is the version of the page: it changes whenever the page is saved. Pass it to save-page as expected_content_hash.
save-page
Section titled “save-page”| Parameter | Type | Notes |
|---|---|---|
id |
integer | Omit it to create a page |
expected_content_hash |
string | Required to update |
title |
string | Required to create |
content |
string | Serialized blocks; replaces the whole page body |
excerpt |
string | |
status |
draft, pending, publish or private |
New pages default to draft |
slug |
string | |
template |
string | A page template from site-context |
featured_media |
integer ≥ 0 | Attachment ID |
Returns id, the new content_hash, status, link and edit_url. It doesn’t repeat the content.
Errors: content_conflict (the page changed, or no hash was sent), post_locked (someone has the page open in the WordPress editor right now), missing_title, non_block_content (new loose HTML), unknown_block (a new unregistered block), plus WordPress’s own permission errors. Loose HTML from the classic editor and blocks that are no longer registered can stay if they were already in the content.
list-posts
Section titled “list-posts”| Parameter | Type | Default |
|---|---|---|
search |
string | — |
status |
publish, draft, pending, private or future |
all of them |
category |
integer (category ID) | — |
tag |
integer (tag ID) | — |
page |
integer ≥ 1 | 1 |
per_page |
integer, 1–50 | 20 |
Returns posts (each with id, title, status, date and link), newest first, plus total and total_pages.
get-post
Section titled “get-post”| Parameter | Type |
|---|---|
id |
integer, required |
Returns id, title, content, content_hash, excerpt, status, date, slug, link, categories and tags (IDs), sticky, featured_media, template, modified_gmt and edit_url.
save-post
Section titled “save-post”| Parameter | Type | Notes |
|---|---|---|
id |
integer | Omit it to create a post |
expected_content_hash |
string | Required to update |
title |
string | Required to create |
content |
string | Serialized blocks; replaces the whole post body |
excerpt |
string | |
status |
draft, pending, publish, private or future |
New posts default to draft |
date |
string | In the site’s timezone, such as 2026-11-01T09:00:00. With future, schedules the post |
slug |
string | |
categories |
array of integers | Category IDs from list-terms |
tags |
array of integers | Tag IDs from list-terms |
sticky |
boolean | Pins the post to the top of the blog |
template |
string | |
featured_media |
integer ≥ 0 | Attachment ID |
Returns id, the new content_hash, status, link and edit_url. The hash also covers categories, tags, sticky and date, so a change to any of them invalidates the previous one. Errors are the same as save-page’s, including post_locked, with missing_title for new posts.
list-terms
Section titled “list-terms”| Parameter | Type | Default |
|---|---|---|
taxonomy |
category or post_tag, required |
— |
search |
string | — |
page |
integer ≥ 1 | 1 |
per_page |
integer, 1–100 | 100 |
Returns terms (each with id, name, slug, count and parent), total and total_pages. Empty terms are included.
save-term
Section titled “save-term”| Parameter | Type | Notes |
|---|---|---|
taxonomy |
category or post_tag, required |
|
name |
string, required | |
slug |
string | |
parent |
integer ≥ 0 | Categories only |
description |
string |
Creates the term and returns id, name, slug, taxonomy and created: true. If a term with that name already exists, it returns the existing one with created: false instead of failing. Creating terms needs manage_categories (an Editor or an Administrator).
search-content
Section titled “search-content”| Parameter | Type | Default |
|---|---|---|
search |
string, required | — |
per_page |
integer, 1–20 | 10 (per type) |
Returns results: posts first, then pages, each with type (post or page), id, title, status and link. Unlike WordPress’s own search, it includes drafts. A type the user can’t edit is left out.
list-comments
Section titled “list-comments”| Parameter | Type | Default |
|---|---|---|
status |
all (approved and pending), approve, hold (pending), spam or trash |
all |
post |
integer (post ID) | — |
search |
string | Text to find in the author name or the comment |
page |
integer ≥ 1 | 1 |
per_page |
integer, 1–50 | 20 |
Returns comments (each with id, post, parent, author_name, date, status, content and link), total and total_pages. The commenter’s email, IP address, browser and website are never returned.
moderate-comment
Section titled “moderate-comment”Off by default.
| Parameter | Type |
|---|---|
id |
integer, required |
action |
approve, hold, spam or trash, required |
Returns id and the new status. Asking for the status a comment already has returns it without an error. Trash can be undone from WordPress, and nothing is deleted permanently: if the site empties the trash right away (EMPTY_TRASH_DAYS set to 0), trash is rejected with trash_disabled.
reply-comment
Section titled “reply-comment”Off by default.
| Parameter | Type |
|---|---|
comment_id |
integer, required |
content |
string, required |
Publishes a reply as the connected user and returns id, status and link. Visitors see it right away. Replies are only published under approved comments; otherwise it returns comment_not_approved.
list-blocks
Section titled “list-blocks”| Parameter | Type |
|---|---|
name |
string, such as core/columns |
Without name, returns the blocks shown in the inserter (name, title, description). With name, returns that block with its attributes and supports.
list-patterns
Section titled “list-patterns”| Parameter | Type |
|---|---|
name |
string |
Without name, returns the registered patterns (name, title). With name, also returns the pattern’s serialized content.
list-media
Section titled “list-media”| Parameter | Type | Default |
|---|---|---|
search |
string | — |
page |
integer ≥ 1 | 1 |
per_page |
integer, 1–50 | 20 |
Returns media (images only, each with id, title, url, alt and mime_type), total and total_pages.
site-health
Section titled “site-health”| Parameter | Type | Description |
|---|---|---|
refresh |
boolean | Run the Site Health tests now. Default false |
Returns:
wordpress: the installedversionand theupdateavailable, ornull.phpanddatabase: theirversion.pluginsandthemes: each withname,id(plugin file or theme folder),version,update(ornull) andactive.translation_updates: how many translation updates are waiting.last_checked: when WordPress last checked for updates (UTC). Versions and updates are as of that check: the tool doesn’t look for new updates.site_health: the Site Health counts (good,recommended,critical), as of WordPress’s weekly check or the last time someone opened Tools → Site Health. Withrefresh, the tool runs the tests at that moment, saves the new counts as WordPress does, and addsissues: the tests that didn’t pass, critical first, each withtest,statusandlabel. It usually takes a few seconds, and up to a minute on hosts where requests to the site itself or to WordPress.org hang. WordPress also checks that it can reach WordPress.org. Running the tests needs a user who can see Tools → Site Health.site_health_note: only whensite_healthisnull, because WordPress hasn’t run the tests yet. It explains how to run them.httpsandmultisite.
It’s read only: it never installs or updates anything. It needs update_plugins (Administrators).