Enchant held item
enchant_held_itemEnchant the item in an online player's main hand with a specified enchantment and level; fails when the hand is empty.
Instructions
Add an enchantment to the item in an online player's main hand (fails if the hand is empty).
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": {
"username": "<username>",
"enchantment": "<enchantment>"
},
"name": "enchant_held_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Enchantment level; levels above vanilla maxima are allowed. | |
| username | Yes | Exact, case-sensitive name of an online player. | |
| enchantment | Yes | Enchantment id such as 'sharpness', 'efficiency' or 'minecraft:unbreaking'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||