Vector kit command

file.node

Inspect Object

Answers one object by id: its kind, geometry, paint and children; summary gives a compact form, depth and childLimit bound the children shown.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of file.node
NameTypeRequiredDescription
childLimitintegerno
depthintegerno
idintegernoobject ID
summarybooleanno

Call through vector_run

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

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

Result

Result of file.node
NameTypeRequiredDescription
childrenany[]no
idnumberno
kindstringno
namestringno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "children": {
      "type": "array"
    },
    "id": {
      "type": "number"
    },
    "kind": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "childLimit": {
      "type": "integer"
    },
    "depth": {
      "type": "integer"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "summary": {
      "type": "boolean"
    }
  },
  "returns": "one object",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.