> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/web-portal-3-3/protocol-stack/cas/copy-variant-script.md).

# Copy Variant Script

> **Applies to:** Tmedia 3.0, 3.2, 3.3

If you plan to modify an existing CAS script, you can create a copy of that script first.

To make a copy:

1- Click **CAS** in the navigation panel

![CASR2 0 A](https://docs.telcobridges.com/w/images/b/b8/CASR2_0_A.png)

2- Click the **Scripts** tab

![CASR2 1 A](https://docs.telcobridges.com/w/images/c/ce/CASR2_1_A.png)

3- Click **Copy** next to the desired configuration

![CASR2 2 A](https://docs.telcobridges.com/w/images/3/35/CASR2_2_A.png)

4- Copy the CAS Script:

* Enter a new **name** for the script
* Click **Save**

![CASR2 3 A](https://docs.telcobridges.com/w/images/2/2c/CASR2_3_A.png)

5- Verify that the **"Script file was successfully created"** message appears

![CASR2 4 A](https://docs.telcobridges.com/w/images/7/72/CASR2_4_A.png)

6- The copied script appears in the **User Scripts** list

![CASR2 5 A](https://docs.telcobridges.com/w/images/f/fa/CASR2_5_A.png)

**Path**

```
/configurations/@[configuration_name]/cas_scripts/@[script_name]
```

**Parameters (text)**

```
/configurations/@[configuration_name]/cas_scripts/@[script_name]
name        = "@[script_name]"
revision    = 128082
source      = "Your CAS script goes here"
```

**Parameters (json)**

```
  "name" : "@[script_name]",
  "revision" : 128082,
  "source" : "Your CAS script goes here",
  "unique_name" : "@[script_name].lua_128082"
}
```

### List of Parameters

* [Name](https://prosbcdocs.telcobridges.com/telecom-references/parameter-reference/m3ua#n)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/web-portal-3-3/protocol-stack/cas/copy-variant-script.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
