Doc kit command
list.get
List Definition
Answers a list's definition (each level's format, text and indents); default: the list at the caret.
- Kit
- Doc 0.1.0 (.docx)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
num | integer | no | list id (default: the caret's list) |
Call through doc_run
text
doc_run {
"path": "<file>.docx",
"steps": [{ "command": "list.get" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: num. doc_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
levels | object[] | no | |
num | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"levels": {
"items": {
"additionalProperties": true,
"properties": {
"align": {
"type": "string"
},
"alignedAt": {
"type": "number"
},
"bold": {
"type": "boolean"
},
"color": {},
"follow": {
"type": "string"
},
"font": {
"type": "string"
},
"format": {
"type": "string"
},
"indentAt": {
"type": "number"
},
"italic": {
"type": "boolean"
},
"legal": {
"type": "boolean"
},
"restartAfter": {},
"start": {
"type": "number"
},
"style": {},
"tabAt": {},
"text": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"num": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"num": {
"description": "list id (default: the caret's list)",
"type": "integer"
}
},
"returns": "{\"num\", \"levels\": [as list.define]}",
"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.