Create a card deck
create-card-deckCreate a card deck, hand, or pile in Foundry VTT from a list of cards, each with optional text, image, suit, and value, preserving the given order for later use.
Instructions
Create a card deck from a list of cards (or an empty hand or pile to deal into). Each card has a name and optionally text, image, suit and value. Read back with the cards in the given order.
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": {
"name": "<name>"
},
"name": "create-card-deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| img | No | Image of the stack | |
| name | Yes | Name of the stack | |
| type | No | deck (default), hand or pile | |
| cards | No | The cards, at most 1000; a deck needs at least one | |
| backImg | No | Back image for every card | |
| folderPath | No | Folder for the stack; nested levels separated by "/" are created | |
| description | No | Description of the stack |