# get_current_operation · Rell standard library · Chromia Docs (concept)

> function get_ current_ operation(): gtx_operation Get a struct representing the current operation. Returns a gtx_operation , i.e. a struct with two members

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/op_context/get_current_operation/

FUNCTION

# get\_current\_operation

```signature
function get_current_operation(): gtx_operation
```

Get a struct representing the current operation.

**Returns**

a `gtx_operation`, i.e. a struct with two members:

* `name`, the mount name of the current operation as `text`; and
* `args`, the list of arguments provided to the operation (a list of GTV-formatted text values).

**Throws**

* `exception` — if there is no operation context

Since 0.13.3

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/op_context/get_current_operation.html)Generated API reference, mirrored from the live docs
