vphone_file_delete_confirm
Deletes a file after validating a preview token, ensuring the path matches the approved preview. Use it to finalize deletion only after reviewing the preview step.
Instructions
Execute file deletion.
Executes the deletion after validating the preview token. The token must be valid, not expired, and match the path exactly.
Args: path: Absolute path to delete. preview_token: Token returned by vphone_file_delete_preview. confirm: Must be True to execute deletion.
Returns: FileDeleteConfirmOutput with deletion results.
Raises: PathSecurityError: If 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": {
"path": "<path>",
"preview_token": "<preview_token>"
},
"name": "vphone_file_delete_confirm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to delete | |
| confirm | No | Confirm deletion | |
| preview_token | Yes | Token from preview step |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| success | No | ||
| freed_size | Yes | ||
| deleted_count | Yes |