Search Inventory

15 December 2023

  • C12 - added the regular expression option.

7 October 2016

  • Release 9.134 - the command now returns a CSV string of item asset type by item name by item UUID (instead of the asset UUID).

17 December 2014

  • Release 7.29 - added.
searchinventory (Commands)
TypeCorrade progressive command
Commandsearchinventory
DescriptionThe searchinventory command can be used to search for items in Corrade's inventory.
Permissionsinventory
Parametersgroup, password, pattern
Last ChangesRelease 9.134 - the command now returns a CSV string of item asset type by item name by item UUID (instead of the asset UUID).

The searchinventory command can be used to search for items in Corrade's inventory.

Command Required Parameters Required Corrade Permissions Example
searchinventory group, password, pattern inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // lists all the scripts and
            // notecards found in
            // Corrade's inventory
            "command", "searchinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "pattern", wasURLEscape(".+?"),
            "options", wasListToCSV(["IgnoreCase", "Compiled"]),
            "type", wasListToCSV(["LSLText", "Notecard"]),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Possible Value Description
type A CSV list of member names of the AssetType structure. The type of asset to search. If this parameter is not provided, any asset type is searched.
options A CSV list of regular expression options. Flags to be passed to the regular expression engine .

The pattern parameter is fed a regular expression that can match part or whole asset names.


secondlife/scripted_agents/corrade/api/commands/searchinventory.txt ยท Last modified: 2023/12/16 18:27 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.