# Beautify

This is pre-built Action located under the **@Generic** Element, instructs the Avo Assure to Beautify the content, means it will fix the alignment of file or Input text of provided file and save the result in the dynamic variable.

### **Syntax**

**Input Value:** `<Filepath/Input Text>;<xml/json>`&#x20;

| Argument                                       | Description                                                                                                                                                                               |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Filepath/Input Text></p><p>(Required)</p> | Provide the file path containing XML or JSON content, or directly enter the raw string in the Input Value to beautify it.                                                                 |
| <p>\<xml/json><br>(Required)</p>               | <p>The type of data you want to beautify.<br>– Acceptable values are:<br>• <strong>xml</strong> – if the input is XML format<br>• <strong>json</strong> – if the input is JSON format</p> |

**Output Value:**&#x20;

| Argument                                 | Description                                              |
| ---------------------------------------- | -------------------------------------------------------- |
| <p>\<Dynamic Variable><br>(Required)</p> | This variable stores the beautified string               |
| <p>\<Dynamic Variable><br>(Optional)</p> | This variable stores the status as **true** or **false** |

**Example**

{% hint style="warning" %}
**Note: In this example the exact input text to be beautified is specified**
{% endhint %}

**Beautify the given XML or JSON content**\
\
The **Beautify action** takes the value from the Input Value column (e.g., **{"name":"Alice","age":30,"email":"<alice@example.com>"};json**) and formats the given content based on its type (XML or JSON). The beautified output is stored in the **{Beautified}** variable, and the action status is saved in the **{Status}** variable with the following possible values:

* **True** – if the content is beautified successfully
* **False** – if the content is not beautified&#x20;

<figure><img src="/files/6nVVFs9mV1m4qbeWdvdr" alt=""><figcaption></figcaption></figure>


---

# 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://docs.avoautomation.com/avo-assure/actions/generic/file-and-folder-operations/beautify.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.
