> 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()

Returns parent function/modifier of the instruction.

`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="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FDT1zMDHddE9eTOgY3R7M%2Fimage.png?alt=media&amp;token=6cf4df4e-6676-4d21-95e5-e3f1ae4294bf" alt=""><figcaption></figcaption></figure>
