Execute Villager Trade
minecraft_tradeExecute a villager trade by trade index on an open villager, with support for repeating up to 64 times.
Instructions
Executes a trade on the currently open villager (call minecraft_open_villager first) by trade index.
Returns: { message } Errors: no villager open, invalid trade index, trade disabled, or missing required items.
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": {
"trade_index": "<trade_index>"
},
"name": "minecraft_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| times | No | How many times to repeat the trade. | |
| trade_index | Yes |