Rename or move one project file
rename_fileRename or move a file within a defined project by verifying its SHA-256 hash. Overwriting an existing file is not allowed, ensuring safe file operations.
Instructions
Moves a file inside the same configured project. Source hash is required and destination overwrite is refused.
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": {
"project": "<project>",
"source": "<source>",
"destination": "<destination>",
"expectedSha256": "<expectedSha256>"
},
"name": "rename_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| project | Yes | Project key from list_projects. | |
| destination | Yes | ||
| createParents | No | ||
| expectedSha256 | Yes |