***

title: validateVerb
slug: /reference/typescript/agents/configuration/schema-utils/validate-verb
description: Lightweight validation of a verb config against the schema.
max-toc-depth: 3
---------------------

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

Lightweight validation of a verb config against the schema. Checks that the verb
exists and that required properties are present.

## **Parameters**

<ParamField path="verbName" type="string" required={true} toc={true}>
  The verb name (e.g., `"answer"`, `"play"`).
</ParamField>

<ParamField path="config" type="unknown" required={true} toc={true}>
  The verb configuration object to validate.
</ParamField>

## **Returns**

`ValidationResult` -- An object with `valid: boolean` and `errors: string[]`.

## **Example**

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

const schema = new SchemaUtils();
const result = schema.validateVerb('play', { url: 'https://example.com/audio.mp3' });
console.log(result.valid);  // true
console.log(result.errors); // []
```