# Plugin API

### Plugin descriptor

Every plugin has its descriptor. A plugin descriptor is an instance of `Plugin::Descriptor` which contains some information like name, author, type, supported file types and sub-plugin feature.

### Sub-plugins

The `subPluginFeatures` field of a plugin descriptor is optional. If a plugin defines this field, the `Plugin::Descriptor::SubPluginFeatures` object handles listing and querying its sub-plugins.

Please see [Sub-plugin API](/developer-guides/plugin-system/untitled/sub-plugin-api.md) page for details of `Plugin::Descriptor::SubPluginFeatures`.


---

# 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.lmms.io/developer-guides/plugin-system/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.
