play_card
Play a Slay the Spire card by its ID from your hand, with optional enemy index for targeted attacks.
Instructions
Play a card by its id from hand (re-resolves the hand index).
Args:
card_id: card id field from state/decision_pack (e.g. "Strike_R").
target_index: 0-based enemy index for targeted attacks (omit for
non-targeted cards like Defend).
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": {
"card_id": "<card_id>"
},
"name": "play_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | ||
| target_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |