> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-caio-pizzol-docs-ai-core-preset.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# toc.get

> Retrieve details of a specific table of contents.

## Summary

Retrieve details of a specific table of contents.

* Operation ID: `toc.get`
* API member path: `editor.doc.toc.get(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns a TocInfo object with the instruction, source/display configuration, and entry count.

## Input fields

| Field             | Type                 | Required | Description                   |
| ----------------- | -------------------- | -------- | ----------------------------- |
| `target`          | object(kind="block") | yes      |                               |
| `target.kind`     | `"block"`            | yes      | Constant: `"block"`           |
| `target.nodeId`   | string               | yes      |                               |
| `target.nodeType` | `"tableOfContents"`  | yes      | Constant: `"tableOfContents"` |

### Example request

```json theme={null}
{
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "tableOfContents"
  }
}
```

## Output fields

| Field                          | Type                | Required | Description                   |
| ------------------------------ | ------------------- | -------- | ----------------------------- |
| `kind`                         | `"block"`           | yes      | Constant: `"block"`           |
| `nodeType`                     | `"tableOfContents"` | yes      | Constant: `"tableOfContents"` |
| `properties`                   | object              | yes      |                               |
| `properties.displayConfig`     | object              | no       |                               |
| `properties.entryCount`        | integer             | yes      |                               |
| `properties.instruction`       | string              | yes      |                               |
| `properties.preservedSwitches` | object              | no       |                               |
| `properties.sourceConfig`      | object              | no       |                               |

### Example response

```json theme={null}
{
  "kind": "block",
  "nodeType": "tableOfContents",
  "properties": {
    "displayConfig": {},
    "entryCount": 1,
    "instruction": "example",
    "sourceConfig": {}
  }
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`

## Non-applied failure codes

* None

## Raw schemas

<Accordion title="Raw input schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "target": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "const": "block"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeType": {
            "const": "tableOfContents"
          }
        },
        "required": [
          "kind",
          "nodeType",
          "nodeId"
        ],
        "type": "object"
      }
    },
    "required": [
      "target"
    ],
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "kind": {
        "const": "block"
      },
      "nodeType": {
        "const": "tableOfContents"
      },
      "properties": {
        "additionalProperties": false,
        "properties": {
          "displayConfig": {
            "type": "object"
          },
          "entryCount": {
            "type": "integer"
          },
          "instruction": {
            "type": "string"
          },
          "preservedSwitches": {
            "type": "object"
          },
          "sourceConfig": {
            "type": "object"
          }
        },
        "required": [
          "instruction",
          "entryCount"
        ],
        "type": "object"
      }
    },
    "required": [
      "nodeType",
      "kind",
      "properties"
    ],
    "type": "object"
  }
  ```
</Accordion>
