photos_import_file
Imports an image or small video file to iOS Photos via AFC upload, PhotoKit import, and optional sqlite verification.
Instructions
[advanced] One-shot: AFC upload + Photos ensure + PhotoKit import + optional sqlite verify. Preferred for AI. Needs FRIDA_MCP_PYTHON with pymobiledevice3 (no auto pip). Missing deps → stage=afc in ≤5s. Accepts image or small mp4 (mediaType=video). Video: avoid parallel session_open other apps or expect needsRetry + photos_list.
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": {
"localPath": "<localPath>",
"mediaType": "<mediaType>"
},
"name": "photos_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | ||
| verify | No | Default true — confirm localIdentifier in Photos.sqlite | |
| localPath | Yes | PC file path | |
| mediaType | Yes |