Rename file or directory
zspace_renameRename a file or directory on a ZSpace NAS without changing its location. Provide the absolute path and a new basename to update the name in place.
Instructions
Rename one file or directory on the ZSpace NAS, keeping it in place.
Use to fix a name without changing location; the parent directory stays the same. new_name is the bare basename, not a path. Returns the updated {name, path}. This mutates NAS state; it cannot be undone.
Same-directory only — use zspace_move to relocate to a different parent (move also accepts several paths at once, rename does not).
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": {
"path": "<path>",
"new_name": "<new_name>"
},
"name": "zspace_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the file or directory to rename, e.g. /sata11/my/data/old | |
| new_name | Yes | New name (basename only), e.g. newname.mkv |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||