***

title: hasVerb
slug: /reference/typescript/agents/configuration/schema-utils/has-verb
description: Check if a verb name exists in the schema.
max-toc-depth: 3
---------------------

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

Check if a verb name is defined in the SWML schema.

## **Parameters**

<ParamField path="verbName" type="string" required={true} toc={true}>
  The verb name to look up.
</ParamField>

## **Returns**

`boolean` -- `true` if the verb exists in the schema.

## **Example**

```typescript {4-5}
import { SchemaUtils } from '@signalwire/sdk';

const schema = new SchemaUtils();
console.log(schema.hasVerb('answer'));  // true
console.log(schema.hasVerb('foobar')); // false
```