vphone_file_rename_confirm
Executes a validated file or directory rename/move by confirming the preview token and matching source and destination paths.
Instructions
Execute file rename/move operation.
Executes the rename after validating the preview token. The token must be valid, not expired, and match both paths exactly.
Args: old_path: Current path of file or directory. new_path: New path for file or directory. preview_token: Token returned by vphone_file_rename_preview. confirm: Must be True to execute rename.
Returns: FileRenameConfirmOutput with rename results.
Raises: PathSecurityError: If either path validation fails. VPhoneError: If preview token is invalid or expired. 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>",
"preview_token": "<preview_token>"
},
"name": "vphone_file_rename_confirm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Confirm rename | |
| new_path | Yes | Destination path | |
| old_path | Yes | Source path | |
| preview_token | Yes | Token from preview step |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| new_path | Yes | ||
| old_path | Yes |