tradeWithVillager
Initiate a trade with a nearby villager by specifying the trade index and count. Optionally identify the villager by name.
Instructions
Trade with a nearby 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": "tradeWithVillager"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| villagerName | No | Name or identifier of the villager (optional) | |
| tradeIndex | Yes | Index of the trade from listTrades (1-based) | |
| count | No | Number of times to perform the trade |