> For the complete documentation index, see [llms.txt](https://wopehq.gitbook.io/muninn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wopehq.gitbook.io/muninn/config/methods.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wopehq.gitbook.io/muninn/config/methods.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
