# Your First Plugin

## Getting the Eagle Desktop Application <a href="#htif1" id="htif1"></a>

First, you need to install the Eagle desktop application. You can click here to download the installation program: <https://eagle.cool/download>. If you have already installed the Eagle desktop application, please make sure that you have updated to the latest version. We have added several features specifically to provide you with a better plugin development experience.

***

## Create Plugin <a href="#u0omz" id="u0omz"></a>

1. Click the "Plugin" button on the toolbar.

   <figure><img src="/files/USP61wb4O2XdCridbVIY" alt=""><figcaption></figcaption></figure>
2. In the pop-up menu, choose "Developer Options".

   <figure><img src="/files/a8pio8pqNVxekghKDzLd" alt=""><figcaption></figcaption></figure>
3. Click "Create Plugin".<br>

   <figure><img src="/files/axzHrhND9PK3zbGrJnYH" alt=""><figcaption></figcaption></figure>
4. In the new window, select the type of plugin you want to create, In this example We will choose "Window Plugin".

   <figure><img src="/files/vG0D5wCrsBhBQvvypjSL" alt=""><figcaption></figcaption></figure>
5. Choose the location where you want to save the plugin, and then complete the creation.

If you want to learn more about the differences between different plugin types, you can refer to [this article](/plugin-api/get-started/plugin-types.md). This information will help you determine which type of plugin is suitable for your needs.

***

## Running the Example Plugin <a href="#cpnwm" id="cpnwm"></a>

1. Click the "Plugin" button on the toolbar.
2. In the pop-up menu, find the plugin you just created and click on it.
3. You will see a window pop up, displaying the basic properties of the plugin.

***

## Open the plugin directory in the code editor <a href="#uclkm" id="uclkm"></a>

The plugin project has been created successfully.

At this point, you can use Visual Studio Code or other code editors to open this folder. The plugin is composed of multiple files, and you need to edit these files simultaneously, so you need to open the entire folder, not just one of the files.

The next section will provide a detailed introduction to the file structure of the plugin.


---

# 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://developer.eagle.cool/plugin-api/get-started/creating-your-first-plugin.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.
