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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| times | No | How many times to repeat the trade. | |
| trade_index | Yes |