changedInput schema / properties / action / oneOf
Previous value: -[
- {
- "const": "category_add",
- "description": "Creates a category, with an image when an image slot is filled. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Optional: name, pid, parent_id, global_cat, dscr, brief, meta_title, meta_dscr, url, pos, view_groups, add_groups, exclude_from_discount, fields, image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path."
- },
- {
- "const": "category_update",
- "description": "Updates a category; a filled image slot replaces its image. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). The current image is removed before the new one is saved, so a file with such an extension that is not a valid image leaves the category without an image. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: name, pid, parent_id, global_cat, dscr, brief, meta_title, meta_dscr, url, pos, view_groups, add_groups, exclude_from_discount, fields, image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path."
- },
- {
- "const": "category_show",
- "description": "Shows a hidden category. Required: id. Optional: fields."
- },
- {
- "const": "category_hide",
- "description": "Hides a category. Required: id. Optional: fields."
- },
- {
- "const": "category_image",
- "description": "Uploads the image of a category from the first filled image slot. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). The current image is removed before the new one is saved, so a file with such an extension that is not a valid image leaves the category without an image. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, fields."
- },
- {
- "const": "add",
- "description": "Creates a product. Optional: cat_id, name, brief, dscr, html_dscr, price, price_in, price_old, stock, art, brand, url, meta_title, meta_dscr, tags, type, cats_add, ch_addcat, unit, weight, warr, undisc, fields."
- },
- {
- "const": "update",
- "description": "Updates a product. Required: id. Optional: cat_id, name, brief, dscr, html_dscr, price, price_in, price_old, stock, art, brand, url, meta_title, meta_dscr, tags, type, cats_add, ch_addcat, unit, weight, warr, undisc, fields."
- },
- {
- "const": "hide",
- "description": "Hides or shows a product. Required: id. Optional: hide, fields."
- },
- {
- "const": "cnt_save",
- "description": "Saves product counters (views, sales, orders, rating, stock). Required: id. Optional: views, solds, ordered, rate_num, rate_sum, stock_q, fields."
- },
- {
- "const": "img_add",
- "description": "Adds images to a product. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, image_paths, image_upload_ids, image_site_paths, images, file_add_cnt, fields."
- },
- {
- "const": "img_edit",
- "description": "Replaces the product image in slot img (0 is the main image; the slot must already hold an image). The new image can keep the URL of the old one. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id, img, confirm. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, fields."
- },
- {
- "const": "variation_update",
- "description": "Updates one variation of a product. Required: id, variation_crc. Optional: art, stock, price, price_old, weight, fields."
- },
- {
- "const": "variation_dict_save",
- "description": "Creates a variation dictionary (name and values), or updates the dictionary id: a new name and/or the full list of values. Optional: id, name, values, fields."
- },
- {
- "const": "variation_load",
- "description": "Loads the variations of a product into its edit form. Required: id. Optional: fields."
- },
- {
- "const": "variation_gen",
- "description": "Generates product variations from var_* keys in fields. Required: id, confirm. Optional: fields."
- },
- {
- "const": "variation_edit_save",
- "description": "Saves product variations from var_* keys in fields. Required: id. Optional: fields."
- },
- {
- "const": "stock_genall",
- "description": "Generates all option sets of a product stock. Required: id. Optional: fields."
- },
- {
- "const": "stock_add",
- "description": "Adds an option set to a product stock. Required: id, opt_sel. Optional: fields."
- },
- {
- "const": "stock_save",
- "description": "Saves product stock from stock_* keys in fields. Required: id. Optional: fields."
- },
- {
- "const": "basket_add",
- "description": "Adds a product to the basket. Required: id. Optional: cnt, opt, now, fields."
- },
- {
- "const": "basket_update",
- "description": "Changes the quantity of a basket line. Required: id. Optional: cnt, opt, now, fields."
- },
- {
- "const": "checkout_update",
- "description": "Recalculates or changes the unfinished order (mode recalc or change; checkout field_N keys in fields). Required: mode. Optional: fields."
- },
- {
- "const": "checkout_submit",
- "description": "Places the order from the basket. Required: confirm. Optional: payment_id, delivery_id, promo_code, custom_delivery_tax, fields."
- },
- {
- "const": "invoice_hide",
- "description": "Moves orders to an order group. Optional: ids, id, hide, fields."
- },
- {
- "const": "invoice_courier",
- "description": "Assigns a courier to orders. Required: group_courier. Optional: ids, id, fields."
- },
- {
- "const": "invoice_status",
- "description": "Sets the status of orders. Required: status. Optional: ids, id, fields."
- },
- {
- "const": "invoice_payment",
- "description": "Changes the payment method of an order (order hash in order or id). Required: payment_id. Optional: order, id, fields."
- },
- {
- "const": "order_update",
- "description": "Changes the goods, status or note of an order. Required: order. Optional: status, note, fields."
- },
- {
- "const": "order_add_goods",
- "description": "Adds goods to an order. Required: order. Optional: fields."
- },
- {
- "const": "order_delivery_tax",
- "description": "Sets a custom delivery cost of an order. Required: order, custom_delivery_tax. Optional: fields."
- },
- {
- "const": "comments_add",
- "description": "Adds a product comment (product id in entry_id or id). Required: message. Optional: entry_id, id, pros, cons, parent_id, user_id, subscribe_to_replies, fields."
- },
- {
- "const": "comments_update",
- "description": "Updates a product comment. Required: id. Optional: message, pros, cons, fields."
- },
- {
- "const": "set_currency_rate",
- "description": "Sets the rate of a shop currency. Required: curr_code, curr_rate. Optional: fields."
- },
- {
- "const": "balance_change",
- "description": "Changes the balance of a user by amount: a positive amount adds to it, a negative one subtracts. A subtraction larger than the current balance is refused. A note goes in fields.comment. Required: user_id, amount, confirm. Optional: fields."
- },
- {
- "const": "balance_set",
- "description": "Sets the balance of a user. Required: user_id, amount, confirm. Optional: fields."
- }
-]New value: +[
+ {
+ "const": "category_add",
+ "description": "Creates a category, with an image when an image slot is filled. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Optional: name, pid, parent_id, global_cat, dscr, brief, meta_title, meta_dscr, url, pos, view_groups, add_groups, exclude_from_discount, fields, image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path."
+ },
+ {
+ "const": "category_update",
+ "description": "Updates a category; a filled image slot replaces its image. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). The current image is removed before the new one is saved, so a file with such an extension that is not a valid image leaves the category without an image. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: name, pid, parent_id, global_cat, dscr, brief, meta_title, meta_dscr, url, pos, view_groups, add_groups, exclude_from_discount, fields, image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path."
+ },
+ {
+ "const": "category_show",
+ "description": "Shows a hidden category. Required: id. Optional: fields."
+ },
+ {
+ "const": "category_hide",
+ "description": "Hides a category. Required: id. Optional: fields."
+ },
+ {
+ "const": "category_image",
+ "description": "Uploads the image of a category from the first filled image slot. The category image must be a .jpg, .png or .gif file (.jpeg is renamed to .jpg). The current image is removed before the new one is saved, so a file with such an extension that is not a valid image leaves the category without an image. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, fields."
+ },
+ {
+ "const": "add",
+ "description": "Creates a product. Optional: cat_id, name, brief, dscr, html_dscr, price, price_in, price_old, stock, art, brand, url, meta_title, meta_dscr, tags, type, cats_add, ch_addcat, unit, weight, warr, undisc, fields."
+ },
+ {
+ "const": "update",
+ "description": "Updates a product. Required: id. Optional: cat_id, name, brief, dscr, html_dscr, price, price_in, price_old, stock, art, brand, url, meta_title, meta_dscr, tags, type, cats_add, ch_addcat, unit, weight, warr, undisc, fields."
+ },
+ {
+ "const": "hide",
+ "description": "Hides or shows a product. Required: id. Optional: hide, fields."
+ },
+ {
+ "const": "cnt_save",
+ "description": "Saves product counters (views, sales, orders, rating, stock). Required: id. Optional: views, solds, ordered, rate_num, rate_sum, stock_q, fields."
+ },
+ {
+ "const": "img_add",
+ "description": "Adds images to a product. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, image_paths, image_upload_ids, image_site_paths, images, file_add_cnt, fields."
+ },
+ {
+ "const": "img_edit",
+ "description": "Replaces the product image in slot img (0 is the main image; the slot must already hold an image). The new image can keep the URL of the old one. Image slots take inline bytes (*_base64 with *_filename), an upload_direct id (*_upload_id), a file already on the site (*_site_path), or a path on the MCP server host (*_path, not reachable for remote agents). Required: id, img, confirm. Optional: image_path, image_base64, image_filename, image_upload_id, image_site_path, file_path, file_base64, file_filename, file_upload_id, file_site_path, fields."
+ },
+ {
+ "const": "variation_update",
+ "description": "Updates one variation of a product. Required: id, variation_crc. Optional: art, stock, price, price_old, weight, fields."
+ },
+ {
+ "const": "variation_dict_save",
+ "description": "Creates a variation dictionary (name and values), or updates the dictionary id: a new name and/or the full list of values. Optional: id, name, values, fields."
+ },
+ {
+ "const": "variation_load",
+ "description": "Loads the variations of a product into its edit form. Required: id. Optional: fields."
+ },
+ {
+ "const": "variation_gen",
+ "description": "Generates product variations from var_* keys in fields. Required: id, confirm. Optional: fields."
+ },
+ {
+ "const": "variation_edit_save",
+ "description": "Saves product variations from var_* keys in fields. Required: id. Optional: fields."
+ },
+ {
+ "const": "stock_genall",
+ "description": "Generates all option sets of a product stock. Required: id. Optional: fields."
+ },
+ {
+ "const": "stock_add",
+ "description": "Adds an option set to a product stock. Required: id, opt_sel. Optional: fields."
+ },
+ {
+ "const": "stock_save",
+ "description": "Saves product stock from stock_* keys in fields. Required: id. Optional: fields."
+ },
+ {
+ "const": "basket_add",
+ "description": "Adds a product to the basket. Required: id. Optional: cnt, opt, now, fields."
+ },
+ {
+ "const": "basket_update",
+ "description": "Changes the quantity of a basket line. Required: id. Optional: cnt, opt, now, fields."
+ },
+ {
+ "const": "checkout_update",
+ "description": "Recalculates or changes the unfinished order (mode recalc or change; checkout field_N keys in fields). Required: mode. Optional: fields."
+ },
+ {
+ "const": "checkout_submit",
+ "description": "Places the order from the basket and sends the order notices. No payment is taken: the order waits for payment by the chosen method. Required: confirm. Optional: payment_id, delivery_id, promo_code, custom_delivery_tax, fields."
+ },
+ {
+ "const": "invoice_hide",
+ "description": "Moves orders to an order group. Optional: ids, id, hide, fields."
+ },
+ {
+ "const": "invoice_courier",
+ "description": "Assigns a courier to orders. Required: group_courier. Optional: ids, id, fields."
+ },
+ {
+ "const": "invoice_status",
+ "description": "Sets the status of orders; a paid status is set without any payment. When the shop returns cancelled payments to the balance, moving an order that a registered buyer actually paid online or from the balance from a paid status (2-8) to new, awaiting payment, cancelled or payment processing credits its total to the internal shop balance of the buyer; the buyer gets nothing back for an order that was never paid online or from the balance. Whether a later return to a paid status debits the credited total depends on the status history of the order: it may not be debited, repeated status changes may credit it again, and with some shop settings it may be debited again. Moving an order between the delivered or completed statuses and any other status also credits or debits the internal balances of the user sellers of its goods and the Telegram shop referrer reward, when those are in use, whether or not the order was paid; a move between delivered and completed changes nothing. Required: status, confirm. Optional: ids, id, fields."
+ },
+ {
+ "const": "invoice_payment",
+ "description": "Changes the payment method of an order that can still be paid (order hash in order or id); no payment is taken. When the new method is set up so, the order also gets the payment processing status, which can credit or debit internal balances as in invoice_status. The reply may carry the order link and the payment form of the new method for the buyer. Required: payment_id, confirm. Optional: order, id, fields."
+ },
+ {
+ "const": "order_update",
+ "description": "Changes the goods of an order: quantities, options and prices of its lines, or removes lines (keys in fields). The order total is recalculated, and that total is what may later go back to the balance of the buyer on cancellation. The status and note values are not applied: use invoice_status for the status. Required: order. Optional: status, note, fields."
+ },
+ {
+ "const": "order_add_goods",
+ "description": "Adds goods to an order. Required: order. Optional: fields."
+ },
+ {
+ "const": "order_delivery_tax",
+ "description": "Sets a custom delivery cost of an order. Required: order, custom_delivery_tax. Optional: fields."
+ },
+ {
+ "const": "comments_add",
+ "description": "Adds a product comment (product id in entry_id or id). Required: message. Optional: entry_id, id, pros, cons, parent_id, user_id, subscribe_to_replies, fields."
+ },
+ {
+ "const": "comments_update",
+ "description": "Updates a product comment. Required: id. Optional: message, pros, cons, fields."
+ },
+ {
+ "const": "set_currency_rate",
+ "description": "Sets the rate of a shop currency. Required: curr_code, curr_rate. Optional: fields."
+ }
+]