Doc kit command

paragraph.dialog

Paragraph Settings

Answers a paragraph's formatting as the Paragraph dialog shows it: the caret's paragraph, or the one at path. props is in the form paragraph.set takes; direct holds only the paragraph's own settings.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of paragraph.dialog
NameTypeRequiredDescription
pathinteger[]nodefault: the caret's paragraph
storyanyno

Call through doc_run

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

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

Result

Result of paragraph.dialog
NameTypeRequiredDescription
anchorobjectno
directobjectno
focusobjectno
propsobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "anchor": {
      "additionalProperties": true,
      "properties": {
        "off": {
          "type": "number"
        },
        "path": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "story": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "direct": {
      "additionalProperties": true,
      "type": "object"
    },
    "focus": {
      "additionalProperties": true,
      "properties": {
        "off": {
          "type": "number"
        },
        "path": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "story": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "props": {
      "additionalProperties": true,
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "path": {
      "description": "default: the caret's paragraph",
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "story": {}
  },
  "returns": "{\"props\": the paragraph's formatting as paragraph.set takes it, \"direct\": its own (not inherited) settings, \"anchor\", \"focus\"}",
  "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.