vphone_file_rename_preview
Preview file or directory rename/move operations and return a token to confirm the change within 5 minutes.
Instructions
Preview file rename/move operation.
Generates a preview of the rename operation. Returns a token that must be used to confirm the rename within 5 minutes.
Args: old_path: Current path of file or directory. new_path: New path for file or directory.
Returns: FileRenamePreviewOutput with preview token and overwrite status.
Raises: PathSecurityError: If either path validation fails. FileNotFoundError: If old_path does not exist. NotConnectedError: If not connected to bridge.
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": {
"old_path": "<old_path>",
"new_path": "<new_path>"
},
"name": "vphone_file_rename_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_path | Yes | Destination path | |
| old_path | Yes | Source path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_path | Yes | ||
| old_path | Yes | ||
| expires_at | Yes | ||
| preview_token | Yes | ||
| would_overwrite | No |