ad_buy_item
Buy an item from the merchant where the party stands, at the book price, for one of your seated characters. Ledgered on the sheet; stock depletes and refreshes over table time. Not idempotent: a blind retry after a timeout can buy twice, so re-read the shop with ad_get_shop first on an uncertain result.
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": {
"tableId": "<tableId>",
"characterId": "<characterId>",
"itemName": "<itemName>"
},
"name": "ad_buy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Quantity (default 1). | |
| tableId | Yes | The table id. | |
| itemName | Yes | Catalog item name, exactly as stocked. | |
| characterId | Yes | Your character's id. |