# GmailToolkit

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/gmail/toolkit/GmailToolkit)

Toolkit for interacting with Gmail.

Provides tools for Gmail operations including creating drafts, sending messages,
searching emails, and retrieving messages and threads.

!!! warning "Security"

    This toolkit contains tools that can read and modify the state of a
    service. For example, it can send emails and read messages on behalf
    of the associated account.

    See [Security Best Practices](https://docs.langchain.com/oss/python/security-policy)
    for more information.

## Signature

```python
GmailToolkit()
```

## Extends

- `BaseToolkit`

## Properties

- `api_resource`
- `model_config`

## Methods

- [`get_tools()`](https://reference.langchain.com/python/langchain-google-community/gmail/toolkit/GmailToolkit/get_tools)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/gmail/toolkit.py#L30)