vphone_file_upload
Uploads new file content to a virtual iOS device at an absolute path without overwriting existing files. Validates the path against allowed directories and accepts base64 or hex data.
Instructions
Upload file content (no overwrite).
Uploads a file to the device. Fails if the file already exists. The path must be within an allowed directory.
Args: path: Absolute destination file path. data: File content encoded as base64 or hex. encoding: Content encoding ("base64" or "hex"). permissions: Unix file permissions (e.g., "644").
Returns: FilePutOutput with path and size.
Raises: PathSecurityError: If path validation fails. FileExistsError: If file already exists. 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>",
"data": "<data>"
},
"name": "vphone_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | File content (base64 or hex) | |
| path | Yes | Destination path | |
| encoding | No | Content encoding | base64 |
| permissions | No | Unix permissions (e.g., 644) | 644 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| success | No |