Attack
attackOne combat round: the player swings (d20 + attack vs defense), then every hostile monster in the room swings back. No target = first hostile monster; a calm monster is only provoked when named.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Internal save name: leave it out (the current run is used) | |
| with | No | Use this item for this attack (e.g. a wand); omit for the equipped weapon | |
| target | No | Monster id, words of its name, or uid like rat#2 |