---
title: "file.import: Import — Film kit command — Kition"
description: "Imports media files at `paths` into the project (into `bin` when given); `imageSequence` treats numbered stills as one clip. Answers the new item ids."
canonical: "https://developer.kition.ai/docs/kits/film/commands/file.import"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/file.import](https://developer.kition.ai/docs/kits/film/commands/file.import)

# file.import

**Import.** Imports media files at `paths` into the project (into `bin` when given); `imageSequence` treats numbered stills as one clip. Answers the new item ids.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bin` | `integer` | no | binId? |
| `imageSequence` | `boolean` | no |  |
| `order` | `string` | no | read by the command beside its listed parameters |
| `path` | `string` | no | read by the command beside its listed parameters |
| `paths` | `string[]` | no |  |
| `recursive` | `boolean` | no | read by the command beside its listed parameters |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "file.import" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `bin`, `imageSequence`, `order`, `path`, `paths`, `recursive`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "bin": {
      "description": "binId?",
      "type": "integer",
      "x-khp-types": [
        "Bin"
      ]
    },
    "imageSequence": {
      "type": "boolean"
    },
    "order": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "path": {
      "description": "read by the command beside its listed parameters",
      "type": "string",
      "x-khp-file": {
        "accept": [
          "png",
          "jpg",
          "jpeg",
          "gif",
          "webp",
          "tif",
          "tiff",
          "bmp",
          "wav",
          "wave",
          "bwf",
          "aif",
          "aiff",
          "mp3",
          "mp2",
          "m4a",
          "aac",
          "flac",
          "ogg",
          "opus",
          "mp4",
          "m4v",
          "mov",
          "mkv",
          "webm",
          "avi",
          "mxf",
          "mts",
          "m2ts",
          "m2t",
          "ts",
          "mpg",
          "mpeg",
          "vob",
          "mod",
          "tod",
          "m2v",
          "m1v",
          "mpv",
          "3gp",
          "y4m",
          "apv"
        ],
        "access": "read"
      }
    },
    "paths": {
      "items": {
        "type": "string",
        "x-khp-file": {
          "accept": [
            "png",
            "jpg",
            "jpeg",
            "gif",
            "webp",
            "tif",
            "tiff",
            "bmp",
            "wav",
            "wave",
            "bwf",
            "aif",
            "aiff",
            "mp3",
            "mp2",
            "m4a",
            "aac",
            "flac",
            "ogg",
            "opus",
            "mp4",
            "m4v",
            "mov",
            "mkv",
            "webm",
            "avi",
            "mxf",
            "mts",
            "m2ts",
            "m2t",
            "ts",
            "mpg",
            "mpeg",
            "vob",
            "mod",
            "tod",
            "m2v",
            "m1v",
            "mpv",
            "3gp",
            "y4m",
            "apv"
          ],
          "access": "read"
        }
      },
      "type": "array"
    },
    "recursive": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
