> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/instruction/instruction.get_parent.md).

# Instruction.get\_parent()

`get_parent() → Callable | NoneObject`

The function returns a [Callable](/glider-ide/api/callable.md) object, specifically either a [Function](/glider-ide/api/function.md) or [Modifier](/glider-ide/api/modifier.md) object, where the current instruction is placed.

## Query Example

```python
from glider import *


def query():
  #return the parent function/modifier of an instruction
  return [Instructions().exec(1)[0].get_parent()]
```

## Example Output

<figure><img src="/files/1GWQgBeITevaKxmSyeiB" alt=""><figcaption></figcaption></figure>
