Rename or move deck
rename_deckUse this when the user asks to rename a deck, nest it under another, or pull it out to the top level. new_name is the full path: Pharm::Cardio moves Cardio into Pharm (created if missing). Its subdecks, cards and review history follow. Refused if a deck already has that name (decks are never merged) or the target is inside the deck itself.
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": {
"deck": "<deck>",
"new_name": "<new_name>"
},
"name": "rename_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | The deck's current full name, e.g. "Cardio" or "Pharm::Cardio". | |
| new_name | Yes | Its new full name. "Pharm::Cardio" puts it inside Pharm; a name with no "::" puts it at the top level. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The deck's full name now. | |
| renamed | Yes | ||
| decks_renamed | Yes | Every deck that has a new name: the deck and its subdecks. |