Table kit command

file.outline

List the file's tables and dashboards as its outline

Lists the file's tables and dashboards as its outline, each with its id, its title, what it is and the place the editor opens the file at; changes nothing.

Kit
Table 0.1.0 (.ktable)
Changes the document
no

Parameters

None.

Call through table_run

text
table_run {
  "path": "<file>.ktable",
  "steps": [{ "command": "file.outline" }]
}

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

Result

Result of file.outline
NameTypeRequiredDescription
errorobjectnoWhy the call failed (A18); the file is as it was.
itemsobject[]noThe file's tables, then its dashboards, in the document's order.
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "error": {
      "additionalProperties": false,
      "description": "Why the call failed (A18); the file is as it was.",
      "properties": {
        "code": {
          "enum": [
            "invalid-params",
            "invalid-op",
            "invalid-value",
            "not-found",
            "read-only",
            "unknown-command",
            "command-failed",
            "not-open",
            "draft-required",
            "not-allowed",
            "unsupported",
            "unavailable",
            "failed"
          ],
          "type": "string"
        },
        "index": {
          "description": "The failing step or operation.",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "items": {
      "description": "The file's tables, then its dashboards, in the document's order.",
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The table's or dashboard's id.",
            "type": "string"
          },
          "kind": {
            "enum": [
              "table",
              "dashboard"
            ],
            "type": "string"
          },
          "title": {
            "description": "What people call it.",
            "type": "string"
          },
          "view": {
            "description": "The place, as the editor opens the file at it: { path }."
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (table_commands through @kition/[email protected], built from KitionAI/kition-table@6a436a8). As data: commands.jsonl.