Deal cards
deal-cardsDistribute an equal number of cards from one stack to multiple hands or piles, with a safety check that halts the deal if insufficient cards remain.
Instructions
Deal the same number of cards from one stack to each of several hands or piles. Refused before anything moves when too few cards are left. Needs the write switch.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "deal-cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The stacks to deal to: ids or exact names | |
| how | No | Which cards: top (default), bottom or random | |
| from | Yes | Deal from: id or exact name of the card stack | |
| number | No | Cards per stack, default 1 | |
| chatNotification | No | Post Foundry's chat message about the move (default false) |