woo_create_category
Create a WooCommerce product category by providing the site ID and category name, with optional slug, parent category, image, and description.
Instructions
Create a product category
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": {
"site": "<site>",
"name": "<name>"
},
"name": "woo_create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Category name | |
| site | Yes | Site id (see list_sites) | |
| slug | No | Slug (default: derived from name) | |
| parent | No | Parent category ID (default 0 = top level) | |
| image_id | No | Thumbnail attachment ID | |
| description | No | Description |