Doc kit command

macro.list

Macros

Runs, defines or deletes a macro (a named list of command steps) and answers the macro list.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of macro.list
NameTypeRequiredDescription
defineobjectno{"name": string, "steps": [{"command", "params"}]}
deletestringno
runstringno

Call through doc_run

text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "macro.list" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: define, delete, run. doc_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "additionalProperties": true,
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "define": {
      "additionalProperties": true,
      "description": "{\"name\": string, \"steps\": [{\"command\", \"params\"}]}",
      "properties": {
        "name": {
          "type": "string"
        },
        "steps": {
          "description": "[{\"command\", \"params\"}]",
          "items": {
            "additionalProperties": true,
            "properties": {
              "command": {},
              "params": {}
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "delete": {
      "type": "string"
    },
    "run": {
      "type": "string"
    }
  },
  "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.