# Methods

Muninn includes some helper methods. A list of them is below.

* number
* float
* boolean
* array
* email
* url
* uppercase
* lowercase
* length

### Syntax

```javascript
{
    "key": {
        "selector": ".selector",
        "methods": ["method", "method"]
    }
}
```

or use this shortcut

```javascript
{
    "key": ".selector | method | method"
}
```

### number

Converts the value to an integer.

```javascript
{
    "key": ".selector | number"
}
```

### float

Converts the value to a float number.

```javascript
{
    "key": ".selector | float"
}
```

### boolean

Converts the value to a boolean.

```javascript
{
    "key": ".selector | boolean"
}
```

### array

Collects the values of all elements of the given selector in an array.

```javascript
{
    "key": ".selector | array"
}
```

### email

Parses email inside a value.

```javascript
{
    "key": ".selector | email"
}
```

### url

Parses url inside a value.

```javascript
{
    "key": ".selector | url"
}
```

### uppercase

Converts text to uppercase letters.

```javascript
{
    "key": ".selector | uppercase"
}
```

### lowercase

Converts text to lowercase letters.

```javascript
{
    "key": ".selector | lowercase"
}
```

### length

Returns the length of the string data.

```javascript
{
    "key": ".selector | length"
}
```

Returns the length of the array data.

```javascript
{
    "key": ".selector | array | length"
}
```


---

# 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://wopehq.gitbook.io/muninn/config/methods.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.
