6 October 2016

The getinventorydata command can be used to query an item inside Corrade's inventory following the InventoryItem and InventoryFolder structures.

CommandRequired ParametersRequired Corrade PermissionsExample
getinventorydatagroup, password, item, datainventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // queries the "InventoryType" and
            // "CreatorID" of the item named
            // "gun" in Corrade's inventory
            "command", "getinventorydata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("/My Inventory/Weapons/gun"),
            "data", wasListToCSV(
                [
                    "InventoryType", 
                    "CreatorID"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);