rename
Renames or moves a file or directory to a new path on a Globus endpoint. Requires endpoint UUID, source path, and destination path.
Instructions
Rename or move a file or directory on a Globus endpoint.
The source path must exist. The destination path must not exist. Most endpoints require the destination to be on the same filesystem.
Args: endpoint_id: The UUID of the endpoint. source_path: Current path of the file or directory. dest_path: New path for the file or directory.
Returns: Dict with 'message' confirming the rename and 'code'.
Examples: rename("endpoint-uuid", "/data/old_name.txt", "/data/new_name.txt") rename("endpoint-uuid", "/scratch/temp", "/scratch/results")
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": {
"endpoint_id": "<endpoint_id>",
"source_path": "<source_path>",
"dest_path": "<dest_path>"
},
"name": "rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_id | Yes | ||
| source_path | Yes | ||
| dest_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||