> 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/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://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/name/README.md)


---

# 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 dynamically by asking a question.

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

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/copy-variant-script.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
