Attack an entity
attackTarget and strike a specific entity once by providing its entity ID from get_nearby_entities.
Instructions
Face and attack an entity once. Use an entity id from get_nearby_entities.
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": {
"entity_id": "<entity_id>"
},
"name": "attack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | No | Online player name (defaults to the first online player) | |
| entity_id | Yes | Entity id from get_nearby_entities |