copy_script_across
Copy a script from one open Roblox Studio place to another, overwriting or creating the destination script and any missing folders. Use it to share modules between games.
Instructions
Copy one script's Source from one connected place into another, for example to share a module between two games. Both places must be open in Studio. The destination script is overwritten if it exists, or created with any missing folders if it doesn't. Use list_places to get the place names or ids.
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": {
"fromPlace": "<fromPlace>",
"sourcePath": "<sourcePath>",
"toPlace": "<toPlace>"
},
"name": "copy_script_across"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toPlace | Yes | Place to copy into: its PlaceId or name, as list_places shows. | |
| destPath | No | Dot path for the script in the destination place. Defaults to the same path as sourcePath. | |
| fromPlace | Yes | Place to copy from: its PlaceId or name, as list_places shows. | |
| sourcePath | Yes | Dot path of the script in the source place, e.g. "ReplicatedStorage.Shared.Util". |