# /invoke

## Syntax

**/invoke ${TLO.\[XXX].Action}**

## Description

This will invoke the action portion of some of the new TLO additions. This has the potential to shorten macros and make them more powerful.

The current methods that are available for use and testing are:

For the Task TLO:

`.Select`

For the Spawn\[]. TLO:

`.DoTarget`\
`.DoFace`\
`.DoAssist`\
`.LeftClick`\
`.RightClick`

For the Me. TLO:

`.Stand`\
`.Sit`\
`.Dismount`\
`.StopCast`

For the Me.Buff TLO Member:

`.Remove`

For the Switch TLO:

`.Toggle`

For the Ground TLO:

`.Grab`

For the Window TLO:

`.LeftMouseDown`\
`.LeftMouseUp`\
`.LeftMouseHeld`\
`.LeftMouseHeldUp`\
`.RightMouseDown`\
`.RightMouseUp`\
`.RightMouseHeld`\
`.RightMouseHeldUp`\
`.Select`

## Examples

`/invoke ${Spawn[eqmule].DoTarget}`

if spawn "eqmule" is found, will target

`/invoke ${Me.Buff[Cred].Remove}`

If a buff with the partial name "Cred" is found it will remove it

[Return to Slash Commands](/macroquest/commands/slash-commands.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/invoke.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.
