Buy goods
buyBuy goods instantly from the station market at the current price. Ship must be docked. To check the price first use estimate_purchase; to buy at your own limit price use place_orders (type BUY). Spends CWM and fills cargo; returns the amount bought and total cost. Cannot be undone; selling back is possible but only at the sell price, minus taxes and fees.
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": {
"item_code": "<item_code>",
"quantity": "<quantity>"
},
"name": "buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bearer | No | Your SPACE-CORE Bearer token. Only needed if your client cannot send the Authorization header. | |
| quantity | Yes | How many units to buy (integer >= 1; limited by CWM, cargo space and station stock) | |
| item_code | Yes | Item code from get_market, e.g. FUEL_ROD |