Design kit command
comment.list
List comments
Answers comment threads on a page or every page, filtered, sorted and searched.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
author | string | no | |
filter | "all" | "open" | "resolved" | "mine" | "unread" | no | |
frame | integer | no | a top-level frame id |
page | integer | no | default: current; "all" for every page |
query | string | no | |
resolved | boolean | no | |
sort | "date" | "page" | no |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "comment.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: author, filter, frame, page, query, resolved, sort. design_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
comments | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"comments": {
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"filter": {
"enum": [
"all",
"open",
"resolved",
"mine",
"unread"
],
"type": "string"
},
"frame": {
"description": "a top-level frame id",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"page": {
"description": "default: current; \"all\" for every page",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"query": {
"type": "string"
},
"resolved": {
"type": "boolean"
},
"sort": {
"enum": [
"date",
"page"
],
"type": "string"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.