Skip to main content

WordPress Content & Taxonomies

Provider id: wp-content ยท 16 tool(s).

assign_terms_to_contentโ€‹

Assign taxonomy terms to a piece of content (e.g. set a post's categories or tags).

Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
idintegeryesContent ID.
taxonomystringyesTaxonomy slug (e.g. 'category', 'post_tag').
term_idsarrayyesTerm IDs to assign.

create_contentโ€‹

Create new content of any type. Returns the created object.

๐Ÿ”ด Destructive โ€” supports a dry_run preview flag.
Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
titlestringyesContent title.
contentstringyesContent body (HTML).
statusstringnoStatus (default 'draft').
excerptstringnoExcerpt.
slugstringnoSlug.
authorintegernoAuthor ID.
parentintegernoParent ID (hierarchical).
categoriesarraynoCategory IDs (posts).
tagsarraynoTag IDs (posts).
featured_mediaintegernoFeatured image attachment ID.
menu_orderintegernoMenu order (pages).
metaobjectnoRegistered meta fields.

create_termโ€‹

Create a new term in a taxonomy.

Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
taxonomystringyesTaxonomy slug.
namestringyesTerm name.
slugstringnoTerm slug.
descriptionstringnoTerm description.
parentintegernoParent term ID.

delete_contentโ€‹

Delete content of any type. Set force=true to bypass trash.

๐Ÿ”ด Destructive โ€” supports a dry_run preview flag.
Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
idintegeryesContent ID.
forcebooleannoBypass trash and permanently delete.

delete_termโ€‹

Delete a taxonomy term.

๐Ÿ”ด Destructive โ€” supports a dry_run preview flag.
Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
taxonomystringyesTaxonomy slug.
idintegeryesTerm ID.

discover_content_typesโ€‹

List all available content types (built-in and custom) registered on the site.

Profiles: full, wp

Parameters

No parameters.

discover_taxonomiesโ€‹

List all taxonomies (categories, tags, and custom taxonomies) registered on the site.

Profiles: full, wp

Parameters

No parameters.

find_content_by_urlโ€‹

Find content by its public URL. Extracts the slug and resolves the content type from the URL path (e.g. /documentation/guide/ tries the "documentation" type first), including custom post types. Optionally update it.

Profiles: full, lean, wp

Parameters

ParameterTypeRequiredDescription
urlstringyesFull public URL of the content.
content_typesarraynoOptional explicit content types (slugs or REST bases) to search. If omitted, inferred from the URL path plus all public types.
update_fieldsobjectnoOptional fields to update once found (title, content, status, meta).

get_contentโ€‹

Get a single piece of content by ID and content type.

Profiles: full, lean, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
idintegeryesContent ID.

get_content_by_slugโ€‹

Find content by slug across one or more content types.

Profiles: full, lean, wp

Parameters

ParameterTypeRequiredDescription
slugstringyesThe slug to find.
content_typesarraynoContent types to search (defaults to common types).

get_content_termsโ€‹

Get the taxonomy terms currently assigned to a piece of content.

Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
idintegeryesContent ID.
taxonomystringyesTaxonomy slug to read (e.g. category, post_tag).

get_termโ€‹

Get a single taxonomy term by ID.

Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
taxonomystringyesTaxonomy slug.
idintegeryesTerm ID.

list_contentโ€‹

List content of any type (posts, pages, or custom post types) with filtering and pagination.

Profiles: full, lean, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug, e.g. 'post', 'page', 'product'.
pageintegernoPage number (default 1).
per_pageintegernoItems per page (1-100, default 10).
searchstringnoSearch term for title or body.
slugstringnoLimit to a specific slug.
statusstringnoContent status (publish, draft, etc.).
authorinteger,arraynoAuthor ID or array of IDs.
categoriesinteger,arraynoCategory ID(s), for posts.
tagsinteger,arraynoTag ID(s), for posts.
parentintegernoParent ID for hierarchical content.
orderbystringnoSort field.
orderstringnoSort direction.
afterstringnoISO8601 date; content published after.
beforestringnoISO8601 date; content published before.

list_termsโ€‹

List terms in a taxonomy (e.g. category, post_tag, or a custom taxonomy).

Profiles: full, lean, wp

Parameters

ParameterTypeRequiredDescription
taxonomystringyesTaxonomy slug, e.g. 'category', 'post_tag'.
searchstringnoSearch term name.
per_pageintegernoItems per page (1-100).
pageintegernoPage number.
parentintegernoParent term ID (hierarchical taxonomies).

update_contentโ€‹

Update existing content of any type. Only provided fields change.

๐Ÿ”ด Destructive โ€” supports a dry_run preview flag.
Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
content_typestringyesContent type slug.
idintegeryesContent ID.
titlestringno
contentstringno
statusstringno
excerptstringno
slugstringno
authorintegerno
parentintegerno
categoriesarrayno
tagsarrayno
featured_mediaintegerno
menu_orderintegerno
metaobjectno

update_termโ€‹

Update an existing taxonomy term.

Profiles: full, wp

Parameters

ParameterTypeRequiredDescription
taxonomystringyesTaxonomy slug.
idintegeryesTerm ID.
namestringno
slugstringno
descriptionstringno
parentintegerno