AddSynapse: draft product custom fields
plan_meta_updateAddSynapse: Prepare a DRAFT that sets or removes custom fields (post meta) of one product or a few chosen products (ids from search_products; get_product shows their custom_fields). Only the custom fields get_product lists as custom_fields (custom_fields_locked and hidden fields starting with "_" are not changed here; prices, stock and SKU have their own tools). Changes nothing by itself: the user approves the draft card; Undo puts the previous values back and removes fields the draft added. Needs Store Assistant 1.3.10 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "plan_meta_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Product ids. | |
| key | No | One field instead of fields: its key (with mode and value). | |
| mode | No | ||
| 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. | |
| value | No | ||
| fields | No | custom field key => new text (null removes the field). The same values for every chosen product. |