Skip to main content
Glama

Collect files

collect_files
Destructive

Copies project footage and a saved project copy into a target folder without changing the open project, writes a relink script, and uses dry run to preview file counts and bytes.

Instructions

Copy the project's footage files (and a copy of the saved .aep) into targetFolder, like File > Dependencies > Collect Files, WITHOUT changing the open project or its file path. Footage goes to // (image sequences get their own subfolder with all frames). The .aep copy still points at the ORIGINAL footage paths; the tool also writes collect-report.json (item -> original/copied path) and relink-collected.jsx, which relinks every footage item to the copied files when run (File > Scripts > Run Script File, or run_script_file) after opening the copy. Proxies are not collected. Copying blocks AE while it runs: use dryRun first to see file count and total bytes.

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": {
      "targetFolder": "<targetFolder>"
    },
    "name": "collect_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
compsNoOnly footage used (also via nested precomps) by these comps.
dryRunNoOnly report what would be copied (no files written).
usedOnlyNoWithout comps: skip footage not used in any comp.
overwriteNoReplace files that already exist in the target (default: skip them).
saveFirstNoSave the open project to its own file first if it has unsaved changes.
targetFolderYesDestination folder (created if missing).
includeProjectNoCopy the saved .aep too (default true; skipped with a warning if never saved).
footageFolderNameNoFootage subfolder name (default 'Footage').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=false) by naming side artifacts (collect-report.json, relink-collected.jsx), the fact that proxies are excluded, that image sequences get their own subfolder, that copying blocks After Effects while it runs, and that the .aep copy still points at original footage paths. These are exactly the non-obvious behaviors an agent needs before committing to a long-running write.

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

Conciseness4/5

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

Front-loaded with the core action and the critical 'does not change your project' guarantee; every sentence carries new information. It is dense for one paragraph and the relink instructions could be split out, but there is no filler.

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

Completeness5/5

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

For an 8-parameter mutation tool with no output schema, the description covers the mutation scope, the artifacts produced, the blocking runtime, and the follow-up relink step. An agent can decide, prepare, and correctly sequence the call without further information.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: dryRun's purpose is framed as a preview gate, footageFolderName's effect is explained through the described output layout and image-sequence subfolders, and overwrite defaults (skip) are disclosed. Remaining params like comps and usedOnly are left to the schema.

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

Purpose5/5

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

States a specific verb (copy) and resource (footage files plus the saved .aep) and anchors it to a known UI operation, 'File > Dependencies > Collect Files'. It also immediately distinguishes itself from a plain import by noting the open project and its file path are NOT changed.

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

Usage Guidelines4/5

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

Gives an explicit workflow: use dryRun first to preview file count and bytes, then run relink-collected.jsx via File > Scripts or run_script_file after opening the copy. What's missing is any statement of when to prefer this over import_files or other copy routes, but the sequencing guidance is concrete.

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