Sheet kit command
editor.commentPlaces
Find Comment Anchors
Finds comment anchors that editor.commentAnchor answered: for each, whether it is still in the workbook, its sheet and range now, and on the active sheet its rectangle in document pixels. Changes nothing.
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
anchors | object[] | no | Anchors as { ids }, at most 1000. |
Call through sheet_run
text
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "editor.commentPlaces" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: anchors. sheet_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
places | object[] | no |
Result JSON Schema
json
{
"additionalProperties": false,
"properties": {
"places": {
"items": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"found": {
"type": "boolean"
},
"range": {
"type": "string"
},
"rect": {
"items": {
"type": "number"
},
"type": "array"
},
"sheet": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"anchors": {
"description": "Anchors as { ids }, at most 1000.",
"items": {
"additionalProperties": false,
"properties": {
"ids": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (sheet_commands through @kition/[email protected], built from KitionAI/kition-sheet@82f13b2). As data: commands.jsonl.