# Introduction to Resources

## Resource Directories

In the server, resources are loaded from a folder called `resources/` in the server data directory. Any folder in the `resources/` folder is parsed as a resource, except folders between `[brackets]` which are categories, which can contain multiple resource folders.

Each resource folder also has to contain a [resource manifest reference](/scripting-reference/resource-manifest.md) called `manifest.toml` to be correctly parsed as a resource.

See this example directory tree:

```
server
└── resources
    ├── [category]
    │   ├── [another]
    │   │   └── resource-2
    │   │       └── manifest.toml
    │   └── resource-1
    │       └── manifest.toml
    └── main
        └── manifest.toml
```

In this tree, the following resources exist:

* main
* resource-1
* resource-2

{% content-ref url="/pages/-Mfe0JmgwBpmm7w4pTqs" %}
[Resource Manifest](/scripting-reference/resource-manifest.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Mfe2L-R6dK6SQb\_iQsa" %}
[In JavaScript](/scripting-reference/first-script/javascript.md)
{% endcontent-ref %}


---

# 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.sandboxpowered.org/scripting-reference/resource-introduction.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.
