vphone_file_download
Download file content or metadata from a vPhone virtual iOS device, encoded as base64 or hex, with optional partial reads and file size limits.
Instructions
Download file content or metadata.
Downloads a file from the device. Can retrieve just metadata or the full content. Content is returned encoded as base64 or hex.
Args: path: Absolute file path to download. encoding: Content encoding ("base64" or "hex"). include_content: If True, include file content in response. max_size_mb: Maximum file size to download in megabytes. follow_symlinks: If True, follow symlinks (blocked by default). offset: Start offset for partial reads. length: Number of bytes to read (0 = entire file).
Returns: FileGetOutput with metadata and optionally content.
Raises: PathSecurityError: If path validation fails or symlink detected. FileNotFoundError: If file 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": {
"path": "<path>"
},
"name": "vphone_file_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to download | |
| length | No | Length for partial read (0 = all) | |
| offset | No | Start offset for partial read | |
| encoding | No | Content encoding: base64 or hex | base64 |
| max_size_mb | No | Max file size in MB | |
| follow_symlinks | No | Follow symlinks | |
| include_content | No | Include file content |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| size | Yes | ||
| encoding | No | File content encoding options for transfer. | base64 |
| metadata | Yes | File metadata without content. | |
| chunk_info | No | ||
| size_warning | No |