> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# getTextBlock

> **getTextBlock**(`snapshot`, `path`): \{ `node`: `PortableTextTextBlock`; `path`: `Path`; \} \| `undefined`

Defined in: get-text-block.ts:11

Get the text block node at a given path.

## Parameters

### snapshot

`TraversalSnapshot`

### path

`Path`

## Returns

\{ `node`: `PortableTextTextBlock`; `path`: `Path`; \} \| `undefined`