# Runtime validations

{% embed url="<https://youtu.be/_67r4wq23BA?t=599>" %}

You can provide your own runtime validations methods that will return a boolean for if the command should actually be ran or not.

{% tabs %}
{% tab title="JavaScript" %}
{% code title="command-starts-with-a.js" %}

```javascript
module.exports = (command, usage, prefix) => {
  return command.commandName.startsWith("a");
};
```

{% endcode %}
{% endtab %}

{% tab title="TypeScript" %}
{% code title="command-starts-with-a.js" %}

```typescript
import { CommandUsage, Command } from "wokcommands";

export default (command: Command, usage: CommandUsage, prefix: string) => {
  return command.commandName.startsWith("a");
};
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wornoffkeys.com/validations/what-is-a-feature.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
