interact-entity
Attack, activate, or apply the held item to a nearby Minecraft entity chosen by ID or name, letting the bot target mobs or NPCs within a set distance.
Instructions
Attack, activate, or use the held item on a nearby entity selected by id or name
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": {
"action": "<action>"
},
"name": "interact-entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| action | Yes | ||
| entityId | No | ||
| maxDistance | No |