buy
Buy from a merchant's stock using NPC and item keys. Server handles all pricing and calculations.
Instructions
Buy from a merchant's current stock. Server owns the math.
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": {
"npc_key": "<npc_key>",
"item_key": "<item_key>"
},
"name": "buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npc_key | Yes | ||
| item_key | Yes |