import_batch
Import a folder of photos into darktable's library as a film roll, making copied images visible and trackable. Returns the number of newly imported photos.
Instructions
Register a folder as a film roll in the user's darktable library. Useful when you've copied photos from a card or external drive and want darktable to know about them. Returns the count of newly-imported photos. Requires darktable to be running with the darktable-mcp Lua plugin installed.
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": {
"source_path": "<source_path>"
},
"name": "import_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | Recurse into subdirectories (default true) | |
| source_path | Yes | Absolute path to the folder of photos to import |