Skip to main content
Glama

Import many files

import_files

Import 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

NameRequiredDescriptionDefault
pathsYesAbsolute file paths.
folderNoProject folder to put the imported item(s) in (name/path/id). Omit for the root.
importAsNoHow 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.
sequenceNoImport as an image sequence: path = any frame of a numbered sequence (e.g. shot_0001.png).
stopOnErrorNoStop at the first failed file (default false).
forceAlphabeticalNoImage sequence: use alphabetical order instead of numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the safety profile (not read-only, not destructive, closed-world). The description adds genuinely non-obvious behavior: processing continues past failures unless stopOnError is set, and the result contains both imported items and per-file errors. That partial-success semantics is exactly what an agent needs and is not in the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. The batch scope and the failure-tolerance rule are front-loaded, and the return content is stated in one clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters and no output schema, the description does the important work of summarizing the return value (imported items plus per-file errors) and the partial-failure contract. It does not cover what happens when every file fails, but nothing essential to making the call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter including paths, folder, importAs, sequence, stopOnError, and forceAlphabetical is already documented in the schema. The description echoes the stopOnError semantics but adds no format or constraint detail beyond it, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with the batch qualifier 'several files with the same options in one call', which implicitly separates it from the singular import_file. It stops short of naming the sibling outright, so the differentiation is inferable rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the batch context clear (multiple files sharing one set of options) and mentions stopOnError as the failure-mode switch, but there is no explicit statement of when to prefer this over import_file or collect_files. Usage is implied by the batching language rather than prescribed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools