# TLO:Plugin

## Description

Object that has access to members that provide information on a plugin.

## Forms

|                                                                                                           |                                                                                       |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [*plugin*](/macroquest/data-types-and-top-level-objects/data-types/datatype-plugin.md) **Plugin\[**#**]** | Plugin by number, starting with 1 and stopping whenever the list runs out of plugins. |
| [*plugin*](/macroquest/data-types-and-top-level-objects/data-types/datatype-plugin.md) **Plugin\[name]**  | Finds plugin by name                                                                  |

## Access to Types

* [*plugin*](/macroquest/data-types-and-top-level-objects/data-types/datatype-plugin.md) **plugin**

## Examples

To see if a plugin is loaded:

`/if (${Plugin[MQ2MoveUtils].Name.Length}) {`\
`/echo MQ2MoveUtils plugin is loaded`\
`}`

To load a plugin if needed:

`/if ( !${Plugin[MQ2MoveUtils].Name.Length} ) {`\
`/plugin MQ2MoveUtils noauto`\
`/if ( !${Plugin[MQ2MoveUtils].Name.Length} ) {`\
`/echo To Use this macro you need to have MQ2MoveUtils Loaded`\
`/endmacro`\
`}`\
`}`

## See Also

* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [plugin](/macroquest/data-types-and-top-level-objects/data-types/datatype-plugin.md)


---

# 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://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-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.
