List the terms of a taxonomy
get_termsList terms in a WordPress taxonomy with IDs, names, slugs, parents, and post counts so you can pass valid term IDs to create_advanced_post and update_post.
Instructions
List the terms of one taxonomy (for example the product categories of a shop): ID, name, slug, parent and number of posts. Use the IDs in the terms argument of create_advanced_post and update_post. For the built-in categories and tags, get_categories and get_tags return the same with descriptions.
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": {
"taxonomy": "<taxonomy>"
},
"name": "get_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxonomy | Yes | Taxonomy name or rest_base, from get_taxonomies. If it is the name of one taxonomy and the rest_base of another, the one with that rest_base is read |