Note kit command
table.insertRow
Insert a table row
Inserts a body row before body row `at` (1 is the first; one past the last appends) with optional `cells`.
- Kit
- Note 0.3.0 (Markdown (.md))
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
at | integer | yes | Where the new row goes: 1 before the first body row; one past the last appends. |
cells | string[] | no | The new row's cells. |
table | integer | yes | The table's index in the note, from 0 (document order). |
Call through note_run
text
note_run {
"path": "<file>.md",
"steps": [{ "command": "table.insertRow", "params": { "at": <integer>, "table": <integer> } }]
}The required parameters, with placeholders for their types: not a tested example. Optional: cells. note_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
changed | boolean | yes | Whether the note's text changed (false when it already read so). |
Result JSON Schema
json
{
"additionalProperties": false,
"properties": {
"changed": {
"description": "Whether the note's text changed (false when it already read so).",
"type": "boolean"
}
},
"required": [
"changed"
],
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"at": {
"description": "Where the new row goes: 1 before the first body row; one past the last appends.",
"type": "integer"
},
"cells": {
"description": "The new row's cells.",
"items": {
"type": "string"
},
"type": "array"
},
"table": {
"description": "The table's index in the note, from 0 (document order).",
"type": "integer"
}
},
"required": [
"at",
"table"
],
"type": "object"
}Generated from kition-sdk packages/script/kits/note.ts and the kit itself (kition-note@69e14d9). As data: commands.jsonl.