# getTargetSectionCapability()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getTargetSectionCapability()

> **getTargetSectionCapability**(`capability`, `sectionId`): [`TargetSectionCapability`](https://getpromptscript.dev/api-reference/core/src/interfaces/TargetSectionCapability/index.md) \| `undefined`

Defined in: [core/src/target-capabilities.ts:1639](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/target-capabilities.ts#L1639)

## Parameters

### capability

[`TargetCapability`](https://getpromptscript.dev/api-reference/core/src/interfaces/TargetCapability/index.md)

### sectionId

`string`

## Returns

[`TargetSectionCapability`](https://getpromptscript.dev/api-reference/core/src/interfaces/TargetSectionCapability/index.md) \| `undefined`