Vector kit command
linkedFile.check
Check Links
Answers whether each linked file is where it was and whether it changed since it was read.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ids | integer[] | no | object IDs |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "linkedFile.check" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: ids. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
links | any[] | no | |
missing | number | no | |
modified | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"links": {
"type": "array"
},
"missing": {
"type": "number"
},
"modified": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
}
},
"returns": "{links: [{name, path, status: ok|modified|missing, ids, found?: path (found away from its path: relative to the document, or by name in its folder), preview: true (showing the low-resolution preview, not the file)}], missing, modified}",
"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.