# Creating Mods

To see current mods, and view an example mod that you can make into your own, follow this link: <https://github.com/discord-bot-studio/mods>

### Mod File Format

#### HTML

The HTML is what will be rendered in the node in Discord Bot Studio. You can use `<select>`, `<input>`, and `<textarea>` to capture input from the user. The `name` attribute will be used to save the input data. This is then made available in the `mod` function as fields on the `action` parameter.

#### Mod

The mod function is where the logic of the mod should be written. There are parameters available for use.&#x20;

The `action` parameter will have fields with the values that were saved from the user input from the node HTML.

![In this example mod you can see that there is a textarea which has name="messageText". That allows us to access action.messagetext from within the mod code.](/files/0cZNPvxWgX7GziqrN1Gt)


---

# 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.discordbotstudio.org/mods/untitled.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.
