# useScope

```ts
function* useScope(): Operation<Scope>
```

Get the scope of the currently running [Operation](https://frontside.com/effection/api/v3/Operation.md).

### Return Type


[Operation](https://frontside.com/effection/api/v3/Operation.md)&lt;[Scope](https://frontside.com/effection/api/v3/Scope.md)&gt;


an operation yielding the current scope

[View code](https://github.com/thefrontside/effection/tree/effection-v3.6.1/lib/run/scope.ts#L12)
