use_ability
Activate, deactivate, or spend a character's activatable ability in Black Sword Hack by specifying its ID and mode. Use it to consume bounded resources, toggle stances, or apply prepared doses.
Instructions
Activate, deactivate, or spend a character's activatable ability.
Read the character sheet's 'abilities' block for the legal ability_id values. Use mode 'use' to spend a bounded resource (Legionnaire, Sophist, Bookworm), mode 'activate' to enter a toggle stance (Berserker rage) and 'deactivate' to drop it. Passive effects apply on their own and need no call.
choice names a value for two other kinds of ability, both listed on the sheet alongside their legal choices: an 'intent' ability (e.g. herbalist_stock) records a standing declaration for later -- set it any time, independent of when it resolves; a 'dose' ability (e.g. herbalist_dose) spends one already- prepared dose of the named type, applying its effect immediately (target_id names who receives it; omit it to affect the caller).
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": {
"character_id": "<character_id>",
"ability_id": "<ability_id>"
},
"name": "use_ability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | use | |
| choice | No | ||
| target_id | No | ||
| ability_id | Yes | ||
| character_id | Yes |