# create_sync_playwright_browser

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/playwright/utils/create_sync_playwright_browser)

Create a playwright browser.

## Signature

```python
create_sync_playwright_browser(
    headless: bool = True,
    args: Optional[List[str]] = None,
) -> SyncBrowser
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `headless` | `bool` | No | Whether to run the browser in headless mode. Defaults to True. (default: `True`) |
| `args` | `Optional[List[str]]` | No | arguments to pass to browser.chromium.launch (default: `None`) |

## Returns

`SyncBrowser`

The playwright browser.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/tools/playwright/utils.py#L73)