photos_import
Import photos/videos from /DCIM or device path into Photos.app, returning the local identifier via PhotoKit.
Instructions
[advanced] PhotoKit import already-on-device file (devicePath or remotePath under /DCIM). Host=Photos.app only. Returns localIdentifier.
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": {
"mediaType": "<mediaType>"
},
"name": "photos_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | ||
| mediaType | Yes | ||
| devicePath | No | /var/mobile/Media/DCIM/... | |
| remotePath | No | /DCIM/100APPLE/... | |
| terminateAfter | No | Default true — kill Photos after import (sqlite friendly) |