tools.google_oauth_tools module

Google API tools using per-user OAuth tokens.

Provides Google Drive, Gmail, and Calendar operations via Google’s REST APIs. Requires the user to have connected their Google account via the OAuth flow. Distinct from gcp_tools.py which uses service accounts.

async tools.google_oauth_tools.google_drive_list(query='', folder_id='', limit=20, page_token='', ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_drive_read(file_id, ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_drive_upload(name, content, mime_type='text/plain', folder_id='', ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_gmail_list(query='', label='INBOX', limit=15, page_token='', ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_gmail_read(message_id, ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_gmail_send(to, subject, body, ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_calendar_list_events(time_min='', time_max='', calendar_id='primary', limit=20, query='', ctx=None)[source]
Return type:

str

Parameters:
async tools.google_oauth_tools.google_calendar_create_event(summary, start_time, end_time, description='', location='', calendar_id='primary', attendees=None, ctx=None)[source]
Return type:

str

Parameters: