Create PrestaShop Category
ps_create_categoryCreates a new PrestaShop product category by specifying a name and parent category, with optional activation, description, and SEO fields.
Instructions
Create a new product category.
⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.
Args:
name: Category name (required)
id_parent: Parent category ID (required, use 2 for "Home")
active: Activate the category (default: true)
description: Category description
meta_title: SEO title
meta_description: SEO meta description
link_rewrite: URL slug (auto-generated from name if not provided)
lang_id: Language ID for multilang fields (default: "1")
Returns: Created category ID and summary.
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": {
"name": "<name>",
"id_parent": "<id_parent>"
},
"name": "ps_create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Category name | |
| active | No | Activate the category | |
| lang_id | No | Language ID | 1 |
| id_parent | Yes | Parent category ID | |
| meta_title | No | SEO title | |
| description | No | Category description | |
| link_rewrite | No | URL slug | |
| meta_description | No | SEO meta description | |
| confirmation_token | No | Confirmation token |