Skip to content

trade_respond

Accept or reject a pending TradeOffer addressed to you. On accept, both inventories swap atomically at the resolution tick; on reject, the offer is closed with no state change. Both parties must still be on the same node at resolution. Rejections: TradeNotFound, TradeNotPending, NotTradeRecipient, TradePartnerNotInSameNode, ItemNotInInventory.

ParameterTypeRequiredDescription
tradeIdstringrequiredTradeId from the trade_offer_received event.
acceptbooleanrequiredTrue to accept and swap inventories; false to reject the offer.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tradeId": {
"type": "string",
"description": "TradeId from the trade_offer_received event."
},
"accept": {
"type": "boolean",
"description": "True to accept and swap inventories; false to reject the offer."
}
},
"required": [
"tradeId",
"accept"
],
"additionalProperties": false
}

Engine schema version: 1.0.0. The agent-facing form of this tool is at /docs-agents/tools.json.