---
title: "tabs(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensionwindow/tabs(for:)"
---

# tabs(for:)

Called when the tabs are needed for the window.

## Declaration

```swift
optional func tabs(for context: WKWebExtensionContext) -> [any WKWebExtensionTab]
```

## Parameters

- `context`: The context in which the web extension is running.

## Discussion

Discussion Defaults to an empty array if not implemented.
