villager-trade
Execute trades with an open villager by specifying the trade index and optional repeat count, enabling automated item exchanges in Minecraft.
Instructions
Execute a trade with an open villager
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": {
"tradeIndex": "<tradeIndex>"
},
"name": "villager-trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| times | No | Number of times to repeat the trade (default: 1) | |
| tradeIndex | Yes | Index of the trade to execute (0-based) |