pull_file
Copies a file from an iOS app's data container to your Mac for development-signed apps, with optional waiting for it to appear or update after launch. Returns path, size, and text contents.
Instructions
Copy a file out of an app's data container to the Mac. Works for development-signed apps only; use list_app_files to find paths. Can wait for the file to appear, or to be written after the last launch_app. Returns the local path and size, plus the contents when it is a text file up to 64 KB. Fails if the file is missing when the wait ends.
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": {
"bundleId": "<bundleId>",
"path": "<path>"
},
"name": "pull_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path inside the container, e.g. Documents/result.json | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| bundleId | Yes | App bundle ID, e.g. com.example.MyApp (see list_apps) | |
| destination | No | Local path (default: .build/pulled/<bundleId>/<path> in the ios-device-mcp repo) | |
| waitSeconds | No | Poll this long for the file to exist (default 0) | |
| modifiedAfter | No | Only accept a file modified after this ISO time, or "lastLaunch" for the last launch_app of this app; implies waiting |