# getBlockShapeContract()

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

***

# Function: getBlockShapeContract()

> **getBlockShapeContract**(`name`): [`BlockShapeContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/BlockShapeContract/index.md) \| `undefined`

Defined in: [core/src/block-shapes.ts:147](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/block-shapes.ts#L147)

Return the shape contract for a built-in block.

## Parameters

### name

`string`

## Returns

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