# inventory_give

Commands the bot to send an inventory item or folder to a specific avatar.


:::info
This command also works in a legacy form: `give_inventory`

:::

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("inventory_give", [
  "avatar", "417732f0-a100-4e2d-a9bf-e381cfd12c3a",
  "object", "b572d860-c5cf-e023-a6b2-408f30266acc"
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="give_inventory"
```

```snippet http-api-input-q5yvAagqsZ
avatar    | yes      | The avatar UUID
object    | yes      | The inventory item or folder UUID. Use the **Personal Bot Control Panel** or the [`inventory_list`](/doc/http-api-bot-commands-inventory_list) API command to get this UUID.
nosafehub | optional | Set to `1` to ignore the command if the bot is currently in a Linden Safe Hub (Welcome Area). Recommended for greeters and inviters.
```

```snippet http-api-output-JAwUcmg7i7
```

# Error messages

Before delivering, the bot checks the item’s permissions.  
If the object is **no-transfer**, the following error message is returned:

```
transfer permission not set
```

This check does not apply to folders — an empty folder is delivered if no transferable items are found.

# Comments

* The inventory loads each time your bot restarts. Allow about **60 seconds** for the inventory to completely load.
* The bot automatically recognizes inventory folders and delivers them appropriately.
* The command **freezes for about 15 seconds** if the provided object UUID does not exist in the bot’s inventory.  
  To avoid this, ensure you are using **correct UUIDs**.