wp_list_terms
Retrieves terms from a specified taxonomy, returning their IDs, names, slugs, parent terms, and post counts.
Instructions
List the terms in one taxonomy (id, name, slug, parent, post count).
Read-only. taxonomy is a slug from wp_list_taxonomies. search is an optional
simple filter on the term name. parent comes back as None on a flat taxonomy
(tags) - that means "no hierarchy", not "top level", which WordPress reports as 0.
Requires the REST transport.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"install": "<install>",
"taxonomy": "<taxonomy>"
},
"name": "wp_list_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| install | Yes | ||
| taxonomy | Yes |