Doc kit command

paragraph.borders

Borders

Applies a paragraph border (bottom, top, box, inside, none…) to the selected paragraphs, with width and colour.

Kit
Doc 0.1.0 (.docx)
Changes the document
yes

Parameters

Parameters of paragraph.borders
NameTypeRequiredDescription
colorstringnolike RRGGBB
kind"bottom" | "top" | "left" | "right" | "none" | "all" | "outside" | "inside" | "horizontalLine"no
sidesobjectnoborders per side
style"single" | "double" | "dotted" | "dashed" | "thick" | "triple" | "dotDash" | "wave"no
widthnumbernopoints

Call through doc_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: color, kind, sides, style, width. doc_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "like RRGGBB",
      "type": "string"
    },
    "kind": {
      "enum": [
        "bottom",
        "top",
        "left",
        "right",
        "none",
        "all",
        "outside",
        "inside",
        "horizontalLine"
      ],
      "type": "string"
    },
    "sides": {
      "additionalProperties": true,
      "description": "borders per side",
      "properties": {
        "bottom": {
          "additionalProperties": true,
          "description": "the bottom border",
          "properties": {
            "color": {
              "description": "RRGGBB",
              "type": "string"
            },
            "style": {
              "type": "string"
            },
            "width": {
              "description": "points",
              "type": "number"
            }
          },
          "type": "object"
        },
        "left": {
          "additionalProperties": true,
          "description": "the left border",
          "properties": {
            "color": {
              "description": "RRGGBB",
              "type": "string"
            },
            "style": {
              "type": "string"
            },
            "width": {
              "description": "points",
              "type": "number"
            }
          },
          "type": "object"
        },
        "right": {
          "additionalProperties": true,
          "description": "the right border",
          "properties": {
            "color": {
              "description": "RRGGBB",
              "type": "string"
            },
            "style": {
              "type": "string"
            },
            "width": {
              "description": "points",
              "type": "number"
            }
          },
          "type": "object"
        },
        "top": {
          "additionalProperties": true,
          "description": "the top border",
          "properties": {
            "color": {
              "description": "RRGGBB",
              "type": "string"
            },
            "style": {
              "type": "string"
            },
            "width": {
              "description": "points",
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "style": {
      "enum": [
        "single",
        "double",
        "dotted",
        "dashed",
        "thick",
        "triple",
        "dotDash",
        "wave"
      ],
      "type": "string"
    },
    "width": {
      "description": "points",
      "type": "number"
    }
  },
  "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.