***

title: getSection
slug: /reference/typescript/agents/pom-builder/get-section
description: Retrieve a top-level POM section by its title.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[pombuilder]: /docs/server-sdks/reference/typescript/agents/pom-builder

[pomsection]: /docs/server-sdks/reference/typescript/agents/pom-builder

Retrieve a top-level section from the prompt by its title string.

## **Parameters**

<ParamField path="title" type="string" required={true} toc={true}>
  The section heading to retrieve.
</ParamField>

## **Returns**

`PomSection | undefined` -- The matching section, or `undefined` if no section with that title exists.

## **Example**

```typescript {5}
import { PomBuilder } from '@signalwire/sdk';

const pom = new PomBuilder();
pom.addSection('Greeting', { body: 'Welcome the caller warmly.' });
const section = pom.getSection('Greeting');
console.log(section?.body); // "Welcome the caller warmly."
```