# Connect Session

This is pre-built Action located under the **Mainframe List Element**. The functionality of this action in Avo Assure is to connect to a currently open host session using the provided session ID. This allows the script to perform operations or validations on the connected session.

### **Syntax**

**Input Value:** `<ShortSessionID>`&#x20;

| Argument                                  | Description                                                |
| ----------------------------------------- | ---------------------------------------------------------- |
| <p>\<ShortSessionID></p><p>(Required)</p> | Specify the unique ID of the open host session to connect. |

**Output Value:**&#x20;

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

**Example**

**Connects to a specific mainframe session using session ID**

The **Connect Session** action takes the value from the Input Value column (e.g., **23.229.8.213**) and establishes a connection to the specified session using the provided short session ID.

<figure><img src="/files/6WuQ6R3SrwzNelpJ2RZb" 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/connect-session-1.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.
