AddSynapse: draft product categories, tags, attributes or brand
plan_taxonomy_termsAddSynapse: Prepare a DRAFT that adds, removes or replaces the categories (product_cat), tags (product_tag), brand (brand) or the values of a global attribute (pa_*, e.g. pa_color) of one product or a few chosen products (ids from search_products; a variation means its parent product). mode: add (keeps the existing terms), remove, or replace (the product keeps exactly these terms). Terms: term_names (exact names; case and accents are ignored) and/or term_ids (list_categories with taxonomy shows them). A name that does not exist is an error, unless the user wants it created: then call again with create_missing true — the draft shows a separate line for each new term, the term is created only on Approve, and Undo deletes it while nothing else uses it. An attribute used for variations is changed only in the product editor. Changes nothing by itself. A preview card with the draft and an Approve button appears in the chat; nothing changes on the site until the user presses Approve there. Undo restores the exact previous terms. Needs Store Assistant 1.3.9 or newer. Put every edit of this request in ONE call (up to 20 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": {
"taxonomy": "<taxonomy>",
"mode": "<mode>"
},
"name": "plan_taxonomy_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Product ids (search_products / get_product). | |
| mode | Yes | ||
| site | No | Which connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site. | |
| skus | No | Exact product SKUs, instead of ids. | |
| taxonomy | Yes | product_cat, product_tag, a pa_* attribute, "category", "tag" or "brand". | |
| term_ids | No | Existing term ids. | |
| term_names | No | Exact term names. | |
| create_missing | No | Default false. true = missing terms are added to the draft as separate lines and created on approval. |