bpb_buy_item
Purchase a shop item by slot or item ID and place it in storage; when the skill shop requires a choice, select one skill and return its ID for later placement.
Instructions
购买商店物品并放入储物箱。若 state.shop.choose_one=true(第 3/10 回合的技能商店),则选择一个技能并放入储物箱(返回 skill_id);技能是 1×1 可摆放物品,再用 bpb_place_item 摆进背包。购买后会补发 dropped 信号,触发 Unidentified Skill 等 onDropped 购买效果。用 slot(1-5)或 item_id 指定。
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": "bpb_buy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | 商店槽位,从 1 开始 | |
| item_id | No | 商店物品/技能的 id(来自 bpb_get_state) |