# llGetInventoryDesc

*LSL function*

```lsl
string string llGetInventoryDesc(string item);
```

- `string item`: Name of the item in the prim's inventory.

- Returns: `string`
- Energy: 10

Returns the description string of the specified inventory item.

Returns a [string](https://wiki.secondlife.com/wiki/string) with the description of the inventory **item**.

```lsl title="How to use" frame="terminal"
string result = llGetInventoryDesc("");
```

## Caveats

- If **item** has no description an empty string is returned.

## Examples

<details open>
<summary>Add an object to a prims inventory, as well as this script, in order to get the name of the creator.</summary>

```lsl
default
{
    touch_start(integer total_number)
    {
        integer count = llGetInventoryNumber(INVENTORY_ALL);
        integer index;
        for (index = 0; index < count; ++index)
        {
            string name = llGetInventoryName(INVENTORY_ALL, index);
            string desc = llGetInventoryDesc(name);

            llSay(0, "Item: \"" + name + "\" -- \"" + desc + "\"");
        }
    }
}
```

</details>

## See also

### Functions

- [llGetInventoryAcquireTime](/functions/llGetInventoryAcquireTime/) — Returns the time the item was added to the prim's inventory
- [llGetInventoryName](/functions/llGetInventoryName/) — Returns the inventory item's name
- [llGetInventoryType](/functions/llGetInventoryType/) — Tests to see if an inventory item exists and returns its type
- [llGetInventoryNumber](/functions/llGetInventoryNumber/) — Returns the number of items of a specific type in inventory
- [llGetInventoryPermMask](/functions/llGetInventoryPermMask/) — Returns the inventory item's permissions
- [llGetInventoryKey](/functions/llGetInventoryKey/) — Returns the inventory item's [UUID](https://wiki.secondlife.com/wiki/UUID) (if full perm)

---

*Source: [LlGetInventoryDesc](https://wiki.secondlife.com/wiki/LlGetInventoryDesc) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetInventoryDesc (revision 1215831, 2023-12-09) and Template:LSL Function/inventory (revision 1191151, 2014-06-07), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetInventoryDesc/
