# Replace Assets

To be able to send any assets to the client, you first need to load them in a way the Nexo Maker's client will understand, for this reason, any asset as to be loaded into a variable using <br>

#### Posting Assets with `postAsset()`

```js
nm.postAsset({
  Add: base64Data
});
```

***

#### Example Usage

```js
const icon = await api.nexomaker.imgconvert(__dirname + "/assets/add-icon.png");

nm.postAsset({
  Add: icon
});
```

***

#### ⚠️ Notes

* Keys are injected as global variables inside your Expansion's UI context.
* Keep keys short and unique to avoid conflicts.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nexo-maker.gitbook.io/nexo-maker-docs/themes/themes/replace-assets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
