# Close mainframe

This is pre-built Action located under the **Mainframe List Element**. The functionality of this action in Avo Assure is used to close the currently opened mainframe session or window. This ensures the session is terminated properly.

### Syntax&#x20;

**Input Value:** `N/A`

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**&#x20;

| Argument                                                     | Description                                                     |
| ------------------------------------------------------------ | --------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable> (Optional) | This dynamic variable holds the result as **True** or **False** |

&#x20;**Example**

**Closes the mainframe terminal session**

The **Close mainframe** action does not require any input in the Input Value column. It is used to terminate or close the active session of the mainframe terminal in the desktop application.

<figure><img src="/files/0tYGi3z7qamhnS9Ku2KB" 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/mainframe/close-mainframe.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.
