asset_import_folder
Import every image and video in a local folder into the GravityPort library with a shared prompt and source metadata. Supports recursive reads, skips symlinks, and reports duplicates.
Instructions
Import every image and video found in a local folder into the GravityPort library, applying the same prompt/sourceType/source to each file. The folder path must be an absolute path on this machine. Symbolic links are skipped; with recursive: true the folder itself is level 1 and its contents are read down to level 5 (at most four subfolder levels below it), and deeper subfolders are skipped; a single call imports at most 1000 files, otherwise it fails and asks for batches. Identical bytes already in the library are reported as deduplicated. Files import one by one; a failed file is reported and does not stop the rest. Files already in the library are listed in duplicates with the existing assetId.
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": {
"folderPath": "<folderPath>"
},
"name": "asset_import_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | ||
| source | No | Optional generation provenance applied to every imported file, such as generation_tool, model, or codex_session_id. | |
| recursive | No | Also read subfolders (default false; the folder itself is level 1, contents are read down to level 5, deeper subfolders are skipped). | |
| folderPath | Yes | Absolute path of the folder to import. | |
| sourceType | No |