---
title: "file.info: Info — Doc kit command — Kition"
description: "Answers the document's file information: path, format, size, dates, properties, protection and page and word counts."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/file.info"
---

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

# file.info

**Info.** Answers the document's file information: path, format, size, dates, properties, protection and page and word counts.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

None.

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "file.info" }]
}
```

The required parameters, with placeholders for their types: not a tested example. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `comments` | `number` | no |  |
| `dirty` | `boolean` | no |  |
| `encrypted` | `boolean` | no |  |
| `layoutMs` | `number` | no |  |
| `pages` | `number` | no |  |
| `paragraphs` | `number` | no |  |
| `path` | `any` | no |  |
| `properties` | `object` | no |  |
| `sections` | `number` | no |  |
| `trackChanges` | `boolean` | no |  |
| `words` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "comments": {
      "type": "number"
    },
    "dirty": {
      "type": "boolean"
    },
    "encrypted": {
      "type": "boolean"
    },
    "layoutMs": {
      "type": "number"
    },
    "pages": {
      "type": "number"
    },
    "paragraphs": {
      "type": "number"
    },
    "path": {},
    "properties": {
      "additionalProperties": true,
      "properties": {
        "category": {
          "type": "string"
        },
        "created": {
          "type": "string"
        },
        "creator": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "keywords": {
          "type": "string"
        },
        "lastModifiedBy": {
          "type": "string"
        },
        "modified": {
          "type": "string"
        },
        "revision": {
          "type": "number"
        },
        "subject": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "sections": {
      "type": "number"
    },
    "trackChanges": {
      "type": "boolean"
    },
    "words": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
