Duplicate Script
duplicate_scriptDuplicate a script, optionally with a new name and into another project the token can access. Returns the copy's summary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"scriptId": "<scriptId>"
},
"name": "duplicate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the copy; a name is generated when omitted. | |
| scriptId | Yes | The id of the script to duplicate. | |
| projectId | Yes | The project id of the source script. | |
| destinationProjectId | No | Optional destination project id; defaults to the source project. |