Doc kit command

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)
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

Result of file.info
NameTypeRequiredDescription
commentsnumberno
dirtybooleanno
encryptedbooleanno
layoutMsnumberno
pagesnumberno
paragraphsnumberno
pathanyno
propertiesobjectno
sectionsnumberno
trackChangesbooleanno
wordsnumberno
Result JSON Schema
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/[email protected] and the kit itself (doc_commands through @kition/[email protected], built from KitionAI/kition-doc@41e14a8). As data: commands.jsonl.