Skip to content

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.

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.

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.

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.

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.

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.

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.

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.

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.

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).

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.

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.

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.

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.

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.

Parameter Type
name string

Without name, returns the registered patterns (name, title). With name, also returns the pattern’s serialized content.

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.

Parameter Type Description
refresh boolean Run the Site Health tests now. Default false

Returns:

  • wordpress: the installed version and the update available, or null.
  • php and database: their version.
  • plugins and themes: each with name, id (plugin file or theme folder), version, update (or null) and active.
  • 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. With refresh, the tool runs the tests at that moment, saves the new counts as WordPress does, and adds issues: the tests that didn’t pass, critical first, each with test, status and label. 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 when site_health is null, because WordPress hasn’t run the tests yet. It explains how to run them.
  • https and multisite.

It’s read only: it never installs or updates anything. It needs update_plugins (Administrators).