Update stock
update_stockUpdate the stock quantity for a product or specific variant on supported marketplaces. Requires explicit seller confirmation before executing.
Instructions
Set the stock quantity for one product or a specific variant.
[ROUTINE] This action changes live shop data and requires the seller's explicit confirmation before it executes.
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": {
"product_id": "<product_id>",
"stock": "<stock>"
},
"name": "update_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock | Yes | ||
| platform | No | Marketplace to target. Defaults to shopee. | |
| product_id | Yes | ||
| variant_id | No | ||
| confirmation_token | No | Echo back the token from a prior 'confirmation required' response to approve and execute this action. Only needed when the client cannot prompt directly. |