# TLO:Target

## Description

Object used to get information about your current target.

## Access to Types

* \_\_[*target* ](/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md)**target**
* [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md) **spawn**

## Examples

* To display the target's unique name as sent by EQ use ${Target} or ${Target.Name}

`/echo ${Target} or /echo ${Target.Name}`

*This will return "a\_commander01" on a living mob or "a\_commander's\_corpse0" on a dead mob.*

* To display the target's clean name (also similar to %t on living mobs) use ${Target.CleanName} or

  ${Target.DisplayName}

`/echo ${Target.CleanName} or /echo ${Target.DisplayName}`

*This will return "a commander" on a living mob or "a commander's corpse" on a dead mob.*

* To display the name as used by '%t' on a corpse use the ${Target.DisplayName}

`/echo ${Target.DisplayName}`

*This will return "a commander" when the corpse is targetted.*

* To display the spell ID of the snare debuff use ${Target.Snared.ID}

`/echo ${Target.Snared.ID}`

* Example of using new Slowed target datatype

`/echo ${Target.Slowed.Name} will fade in ${Target.Slowed.Duration.TotalSeconds}s`

returns "\[MQ2] Tepid Deeds will fade in 114s"

* Example of using new Mezzed target datatype

`/echo ${Target} will break mezz in ${Target.Mezzed.Duration.TotalSeconds}s`

returns "\[MQ2] a\_pyre\_beetle48 will break mezz in 66s"

## See Also

* [Target](/macroquest/commands/slash-commands/mqtarget.md)
* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [DataType:spawn](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)
* DataType:targettype


---

# 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-target.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.
