Media Bulk Import
media_bulk_importImport media files in bulk from a source directory into Drupal, with optional recursive scanning and media type selection.
Instructions
Bulk import media files from directory.
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_dir": "<source_dir>"
},
"name": "media_bulk_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | ||
| media_type | No | file | |
| source_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||