Blog tools

Blog archives

HTTP API Inventory Updates

We’ve rolled out two important improvements and feature updates to the HTTP API, focused on making inventory access more flexible and easier to work with in scripts.

inventory_list Improvements
The inventory_list action now supports additional optional parameters that allow filtering and searching inventory items directly at the API level:

  • skipnames: Skips attachments whose names contain the specified substring (case-insensitive).
  • matchnames: Returns only attachments whose names contain the specified substring (case-insensitive).
  • matchuuid: Returns only the attachment with the specified UUID.

These additions make it possible to search a bot’s inventory and return details only for the items you’re interested in, without additional client-side filtering.

New inventory_list_2 action
Alongside these improvements, we’re introducing a new HTTP API action: inventory_list_2.

This new action supports the same filtering and searching options as list_inventory, but returns the results in a cleaner, more structured JSON format that’s easier to consume in modern scripts.

Example response:

{
  "action": "inventory_list_2",
  "result": "OK",
  "list": [
    {
      "uuid": "12b4eca0-5499-3321-ac14-56e5ecb25e95",
      "name": "Instructions Notecard",
      "flags": "",
      "assetUuid": "719197e1-79bb-a8f8-4901-ccee019982b6",
      "currentPerms": [
        "copy",
        "mod",
        "trans"
      ],
      "type": "Notecard",
      "nextPerms": [
        "copy",
        "mod",
        "trans"
      ],
      "clothing": ""
    }
    // ...more items
  ]
}

New folder_create action
By customer request, we also added a new action to create folders in the bot’s inventory: folder_create.

Happy scripting!

Bot inventory sorting

Personal bot inventory browser sorting is now available. You can sort inventory in two ways:

  • by creation date (default, like viewer does)
  • by name

The sorting is saved so you can stick to your favorite mode. Inventory folders are always sorted by name (there’s no info on creation date available from SL).

HTTP API commands added and updated

HTTP API updates: control your Second Life botSmartBots HTTP API functions have been extended by adding the new functionality.

listinventory – retrieve the bot’s inventory contents

listinventory command allows listing the bot’s inventory: items, wearables, folders. Now this command shows the object’s permissions. More information available in docs.

give_inventory command improved

give_inventory command sends inventory items to a specific resident. Now it is possible to send the whole folders (just specify the folder inventory UUID – system determines the inventory item type automatically).

Also, the error handling has been improved: the function now returns an error if object permissions do not contain a ‘Transfer” flag.

These changes are published already, you may use them in your applications or try HTTP API by using SmartBots API Testing Suite.

Powerful inventory browser, appearance accelerator and APIs

We’ve published an important software update today, involving both bot software, website and our APIs.

Online Inventory Browser

The most noticeable update is the new Inventory Browser in bot control panel. Now you can browse bot’s folders and perform basic operations with these items:

  • wear and take off clothes
  • attach objects
  • change inventory objects’ permissions

This is just a first step to fully-functional inventory manager: we will add animation support, delivery and other features soon.

(more…)