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.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
tradeId | string | required | TradeId from the trade_offer_received event. |
accept | boolean | required | True to accept and swap inventories; false to reject the offer. |
Input schema
Section titled “Input schema”{ "$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.