store

Buys or sells an item at the store screen that is open. Open a store by talking to a merchant and asking to see the wares.

While a store is open, gui reports fullScreen Store, and its store lists the stock with each item’s price, your pack with what each item sellsFor, and your money, all in copper.

action is one of:

  • buy: buys item from the stock.
  • sell: sells item from your pack.

The tool sends what the screen’s own button sends, and the game does the rest; it refuses a purchase you cannot afford. The answer includes the price of one (each), the money before and after, and taken, which is false when the money did not change. To close the store, call input with {“message”: “GUI.HideFullScreenGUI”}.

Arguments

Name Type Required What
action "buy" | "sell" yes Buy or sell.
item string yes The item, by its id from the stock or pack that gui lists.
count integer (≥ 1)   How many of a stack to buy or sell, up to 999. Default 1.

Call it as store over MCP, or POST /api/tool/store with the arguments as JSON.