> ## Documentation Index
> Fetch the complete documentation index at: https://luau.limerence.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# getAsset

> api.utility.getAsset: grab one asset Limerence has loaded.

```luau theme={null}
api.utility.getAsset(assetType: string, name: string): any
```

Grab one asset Limerence has loaded, e.g. `getAsset("image", "pencil")`.

<ParamField path="assetType" type="string" required>
  Category, e.g. `"image"`.
</ParamField>

<ParamField path="name" type="string" required>
  Key in that category, e.g. `"pencil"`.
</ParamField>

<ResponseField name="returns" type="any">
  Type depends on the category.
</ResponseField>

```luau theme={null}
local tab = api.ui.tab("My Script", "pencil") -- the name, not the resolved asset
local img = api.utility.getAsset("image", "pencil")
```

## Related

[getAssets](/utility/get-assets)
