Guide

Publish Workflows Abilities

WordPress Abilities API tools so MCP agents can find files inside editorial workspaces.

Use these before a generic media or post search when someone asks where a project file lives.

Ability index

AbilityPermissionSide effects
prc-publish-workflows/search-workspacesedit_postsRead-only
prc-publish-workflows/get-workspaceedit_postsRead-only

Category: publish-workflows
Meta: show_in_rest: true, MCP public tools, readonly / idempotent
Access: same as Workspaces REST — the current user must own the workspace or be a watcher (administrators can access all).
Source: includes/class-ability.php, includes/class-ability-categories.php, includes/workspaces/class-workspace-search.php

prc-publish-workflows/search-workspaces

Call this first. Example user ask: “where is the Christian icon file for the religious projections project”.

Reference

Input

Typed options, defaults, and constraints in one scannable reference.
3 fields
query string required
Keywords from the user (project name, file name, or both).
limit number
Maximum workspaces to return (1–25).
site_id number
Multisite blog ID via platform AI utils. Defaults to the content site (20).

Each match includes:

  • workspace.url — admin screen (index.php?page=prc-publish-workflows-workspaces&workspace={id})
  • items[] — collected items whose labels, filenames, or URLs matched; items[].url is the best openable link (file URL, permalink, or stored link)
  • matchedOntitle, description, and/or items

Always show both the item URL and the workspace URL. If a workspace matches and items is empty, call get-workspace with that id to list every collected item.

If the plugin is inactive on the target site, the ability returns plugin_inactive_on_site.

prc-publish-workflows/get-workspace

Reference

Input

Typed options, defaults, and constraints in one scannable reference.
2 fields
workspace_id number required
Workspace post ID from search-workspaces.
site_id number
Multisite blog ID via platform AI utils.

Returns { id, title, description, url, items } for one accessible workspace. url is the workspace admin screen. Each item includes url, viewUrl, and editUrl.

Was this helpful?