> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# blockedAction

```typescript
blockedAction(error: unknown): undefined | BlockedActionErrorData
```

The structured payload of a blocked-action error (`-32020`): which gate
refused the action and why. `undefined` for any other error.

## Parameters

**error** `unknown` *required*

## Returns

`undefined | BlockedActionErrorData`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.