Import many files
import_filesImport multiple files into an After Effects project in one call, continuing past failures. Returns imported items plus per-file errors so batch imports and sequences complete with clear diagnostics.
Instructions
Import several files with the same options in one call. Continues past failures (stopOnError to stop) and returns imported items and per-file errors.
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": {
"paths": "<paths>"
},
"name": "import_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Absolute file paths. | |
| folder | No | Project folder to put the imported item(s) in (name/path/id). Omit for the root. | |
| importAs | No | How to import: footage (default for media), comp / comp_cropped_layers (layered PSD/AI as a composition), project (.aep into this project). Fails listing the possible modes if the file can't be imported that way. | |
| sequence | No | Import as an image sequence: path = any frame of a numbered sequence (e.g. shot_0001.png). | |
| stopOnError | No | Stop at the first failed file (default false). | |
| forceAlphabetical | No | Image sequence: use alphabetical order instead of numbers. |