# Run Macro

### **Parameters**

* **Index**: The index of the macro from 1 to 100.
* **Wait**: The number of sections to wait after running the macro. This is useful if you have a macro that takes several seconds to complete, and you want it to finish before continuing onto the next action in your shortcut.

If the macro does not exist at the selected index, nothing will happen and no error will be given.

There is an 8 second limit on the Wait parameter. This is due to Shortcuts imposing a 10-second limit on the amount of time an individual action can take.

### Returns

Nothing


---

# 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.mixeffect.app/automate/shortcuts/actions/run-macro.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.
