coupon_copy_save
Copy a UI reference coupon, update product name, description, and SPU, then save. Automates coupon configuration in Cotti Admin.
Instructions
UI copy reference coupon → patch name/desc/SPU only → Save. Requires Playwright.
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": {
"country": "<country>",
"activityDate": "<activityDate>",
"sourceTemplateNo": "<sourceTemplateNo>",
"sourceId": "<sourceId>",
"products": "<products>"
},
"name": "coupon_copy_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | Country code (ID, MY, VN, HK, MO, SG, AU) | |
| products | Yes | ||
| sourceId | Yes | ||
| couponTitle | No | ||
| activityDate | Yes | YYYYMMDD launch Tuesday | |
| sourceTemplateNo | Yes |