---
title: "file.json: Document JSON — Vector kit command — Kition"
description: "Answers the complete document model as JSON; large, so prefer file.inspect or file.node unless you need everything."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/file.json"
---

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

# file.json

**Document JSON.** Answers the complete document model as JSON; large, so prefer file.inspect or file.node unless you need everything.

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

## Parameters

None.

## Call through vector_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `artboards` | `object[]` | no |  |
| `color_mode` | `string` | no |  |
| `graphic_styles` | `object[]` | no |  |
| `grid` | `object` | no |  |
| `guides` | `any[]` | no |  |
| `images` | `object` | no |  |
| `layers` | `object[]` | no |  |
| `metadata` | `object` | no |  |
| `next_id` | `number` | no |  |
| `raster_effects_ppi` | `number` | no |  |
| `swatch_groups` | `object[]` | no |  |
| `swatches` | `object[]` | no |  |
| `symbols` | `any[]` | no |  |
| `title` | `string` | no |  |
| `units` | `string` | no |  |
| `version` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "artboards": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "rect": {
            "additionalProperties": true,
            "type": "object"
          },
          "show_center_mark": {
            "type": "boolean"
          },
          "show_cross_hairs": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "color_mode": {
      "type": "string"
    },
    "graphic_styles": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "appearance": {
            "additionalProperties": true,
            "type": "object"
          },
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "unit_box": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "grid": {
      "additionalProperties": true,
      "properties": {
        "spacing": {
          "type": "number"
        },
        "subdivisions": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "guides": {
      "type": "array"
    },
    "images": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "layers": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "number"
          },
          "kind": {
            "additionalProperties": true,
            "type": "object"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "metadata": {
      "additionalProperties": true,
      "properties": {
        "author": {
          "type": "string"
        },
        "authorTitle": {
          "type": "string"
        },
        "copyrightNotice": {
          "type": "string"
        },
        "copyrightStatus": {
          "type": "string"
        },
        "copyrightUrl": {
          "type": "string"
        },
        "created": {
          "type": "number"
        },
        "description": {
          "type": "string"
        },
        "keywords": {
          "type": "array"
        },
        "modified": {},
        "rating": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "next_id": {
      "type": "number"
    },
    "raster_effects_ppi": {
      "type": "number"
    },
    "swatch_groups": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "name": {
            "type": "string"
          },
          "swatches": {
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "swatches": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "paint": {
            "additionalProperties": true,
            "type": "object"
          },
          "spot": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "symbols": {
      "type": "array"
    },
    "title": {
      "type": "string"
    },
    "units": {
      "type": "string"
    },
    "version": {
      "type": "number"
    }
  },
  "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).
