Skip to main content
Glama

Import Asset

import_asset

Copy binary files into your Remotion project's assets folder, auto-detect images/audio/fonts, and return public paths for staticFile(). Use for uploads needing project-ready asset paths.

Instructions

Copy files from any location (typically temp uploads) into the project's assets/ directory. Automatically detects the category (images, audio, fonts) from the file extension. Returns publicPath values ready for staticFile() calls. Also returns an assetTree showing all files in each asset folder. For binary assets only — use write_file for code files (.tsx, .ts, .css).

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": {
      "projectPath": "<projectPath>",
      "files": "<files>"
    },
    "name": "import_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesOne or more files to import
onDuplicateNo"overwrite" (default) replaces existing files. "rename" appends -1, -2, etc. to avoid collision.overwrite
projectPathYesAbsolute path to the Remotion project root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the return payload (publicPath values for staticFile() plus an assetTree) and the automatic category detection, but it never mentions in prose that the default onDuplicate behavior overwrites existing files, nor any permission or path-creation requirements for a mutation that writes into assets/.

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?

Four short sentences, each front-loaded and earning its place: action and destination first, then detection, then return values, then the exclusion rule. Nothing is restated from the schema verbatim.

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?

Return values are described even though no output schema exists, and the detection/exclusion rules cover the tricky cases. The remaining gap is that the overwrite-risk of the default duplicate behavior lives only in the schema, not the description.

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 description coverage is already 100%, so baseline is 3; the description adds context by explaining that category is auto-detected from the extension and that sourcePath is typically a temp upload location, which justifies why an agent would omit category override.

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 and resource (copy files into the project's assets/ directory) plus the scope (binary assets from any location, typically temp uploads). It explicitly distinguishes itself from write_file for code files, so an agent can route correctly without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use (binary assets such as images/audio/fonts) and an explicit when-not-to-use with the named alternative: 'use write_file for code files (.tsx, .ts, .css)'. The 'typically temp uploads' note further frames the common call context.

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