---
title: "file.inspect: Inspect Document — Vector kit command — Kition"
description: "Answers the active document's layer tree, artboards, selection and history; depth and childLimit slice large trees. Start here before editing, and use file.node for one object."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/file.inspect"
---

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

# file.inspect

**Inspect Document.** Answers the active document's layer tree, artboards, selection and history; depth and childLimit slice large trees. Start here before editing, and use file.node for one object.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `childLimit` | `integer` | no |  |
| `depth` | `integer` | no |  |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "file.inspect" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `artboards` | `object[]` | no |  |
| `colorMode` | `string` | no |  |
| `currentLayer` | `number` | no |  |
| `dirty` | `boolean` | no |  |
| `history` | `any[]` | no |  |
| `isolation` | `any` | no |  |
| `layerRows` | `any[]` | no |  |
| `layers` | `object[]` | no |  |
| `objects` | `number` | no |  |
| `paint` | `object` | no |  |
| `pasteRemembersLayers` | `boolean` | no |  |
| `path` | `any` | no |  |
| `redo` | `any[]` | no |  |
| `revision` | `number` | no |  |
| `selection` | `number[]` | no |  |
| `selectionBounds` | `object` | no |  |
| `selectionRotation` | `number` | no |  |
| `target` | `any` | no |  |
| `title` | `string` | no |  |
| `tool` | `string` | no |  |
| `units` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "artboards": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "height": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "width": {
            "type": "number"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "colorMode": {
      "type": "string"
    },
    "currentLayer": {
      "type": "number"
    },
    "dirty": {
      "type": "boolean"
    },
    "history": {
      "type": "array"
    },
    "isolation": {},
    "layerRows": {
      "type": "array"
    },
    "layers": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "bounds": {
            "additionalProperties": true,
            "type": "object"
          },
          "children": {
            "type": "array"
          },
          "clip": {
            "type": "boolean"
          },
          "color": {
            "type": "string"
          },
          "dimImages": {},
          "id": {
            "type": "number"
          },
          "kind": {
            "type": "string"
          },
          "locked": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "preview": {
            "type": "boolean"
          },
          "printable": {
            "type": "boolean"
          },
          "template": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "objects": {
      "type": "number"
    },
    "paint": {
      "additionalProperties": true,
      "properties": {
        "appearanceItem": {},
        "fill": {
          "type": "string"
        },
        "fillActive": {
          "type": "boolean"
        },
        "stroke": {
          "type": "string"
        },
        "strokeWidth": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "pasteRemembersLayers": {
      "type": "boolean"
    },
    "path": {},
    "redo": {
      "type": "array"
    },
    "revision": {
      "type": "number"
    },
    "selection": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "selectionBounds": {
      "additionalProperties": true,
      "properties": {
        "height": {
          "type": "number"
        },
        "width": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "selectionRotation": {
      "type": "number"
    },
    "target": {},
    "title": {
      "type": "string"
    },
    "tool": {
      "type": "string"
    },
    "units": {
      "type": "string"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "childLimit": {
      "type": "integer"
    },
    "depth": {
      "type": "integer"
    }
  },
  "returns": "layer tree, artboards, selection, history (a sliced tree reports childCount)",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
