# #include

## Description

\#include filename

This allows you to include the contents of another file (called a "snippet") within your macro, as though the contents were part of the calling macro. You can access the [Subroutines](/macroquest/documentation/subroutines.md) of the included file using /call, just as though they were a part of the original macro.

## Use

Traditionally the filename extension .inc is used to indicate that it is an include file, but you may use any extension name that you like. When you are including a file, you must make sure you type the name correctly. Include files are case-insensitive (eg. spells.inc = spellS.inc).

## Example

```
#include spell_routines.inc
Sub Main
  /call Cast "Complete Healing" gem1
/return
```

## See Also

* [Pound\_Commands](/macroquest/commands/macro-commands/macro-directives.md)
* [Macro\_Reference](/macroquest/documentation/macro-reference.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/commands/macro-commands/macro-directives/include.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.
