Deckofcards Draw Cards
deckofcards_draw_cardsDraw cards from a deck. Returns card details (suit, value) and remaining count. Specify count to draw multiple cards at once.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deck_id": "3p40paa87x90"
},
"name": "deckofcards_draw_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of cards to draw. Defaults to 1. | |
| deck_id | Yes | The deck ID returned by new_deck (e.g. "3p40paa87x90"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | Array of cards drawn | |
| deck_id | Yes | Unique identifier for the deck | |
| remaining | Yes | Number of cards remaining in the deck |