直接買
buy_listing以開價立刻鎖定商品 24 小時,回傳交易與賣家聯絡方式。第一個成功的買家取得商品,鎖錯可用 deal_action 取消。
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": {
"listing_id": "<listing_id>"
},
"name": "buy_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | 帳號金鑰。Authorization 標頭無法設定時才用這個參數。 | |
| contact | No | 選填。成交後讓對方看到的聯絡方式,例如 LINE ID。 | |
| listing_id | Yes | ||
| idempotency_key | No | 選填。至少 16 字元;重送時可避免重複且會取回同一結果。 |