AddSynapse: draft new products
plan_product_createAddSynapse: Prepare a DRAFT of NEW simple products for the WooCommerce shop (name, regular price, optional sale price, description, short description, SKU, stock, existing categories by name, an existing image id from find_media). Put ALL the new products of one request into ONE call (up to 10 in products[]): the user approves them with one click. Nothing is created now: the shop creates them when the user presses Approve on the draft card — live in the shop (status publish, default) or kept as drafts in WooCommerce (status draft, only when the user asked). Undo moves those products (and their variations) to the trash. Products with options (sizes, colors…): type variable + attributes [{name, options}] + variations, each one option of every attribute with its own regular price, optional sale price, stock and SKU (no variations = every combination with the product's regular_price / stock_quantity); at most 50 variations per product, 100 per call; a shop attribute with the same name (Size → pa_size) is used, else one only for this product. New images are not uploaded here. Afterwards get_product (id or product_id from the result) / search_products show the new products. Needs Store Assistant 1.3.11 or newer (products with options: 1.3.13). Put every edit of this request in ONE call (up to 10 new products) — the user approves them together with one click and can undo them together; never one call per item.
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": {
"products": "<products>"
},
"name": "plan_product_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site. | |
| products | Yes |