# toc.getEntry

> Retrieve details of a specific TC (table of contents entry) field.



- Member path: `doc.toc.getEntry(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

Returns a TocEntryInfo object with the instruction, text, level, and switch configuration.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "inline"
        },
        "nodeType": {
          "const": "tableOfContentsEntry"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "target"
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "nodeType": {
      "const": "tableOfContentsEntry"
    },
    "kind": {
      "const": "inline"
    },
    "properties": {
      "type": "object",
      "properties": {
        "instruction": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "level": {
          "type": "integer"
        },
        "tableIdentifier": {
          "type": "string"
        },
        "omitPageNumber": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "required": [
        "instruction",
        "text",
        "level",
        "omitPageNumber"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "nodeType",
    "kind",
    "properties"
  ]
}
```

## Pre-apply throws

- `TARGET_NOT_FOUND`

## Non-applied receipt codes

- None

