[ { "type": "function", "function": { "name": "toggle_flashlight", "description": "Control the rear camera LED flashlight state on the device. Turns the Android device flashlight or torch on, off, or toggles its current state via CameraManager.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, toggle)", "enum": [ "on", "off", "toggle" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_wifi", "description": "Enable, disable, or open the system Wi-Fi connectivity panel. Controls Wi-Fi wireless networking state or launches the Android Settings Internet/Wi-Fi quick panel.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_bluetooth", "description": "Enable, disable, or open the Bluetooth radio settings panel. Controls the Bluetooth wireless adapter for pairing headphones, speakers, and peripherals.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_mobile_data", "description": "Toggle cellular mobile data or open the mobile network settings panel. Manages 4G/5G cellular data connectivity or opens the Android mobile data quick panel.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_airplane_mode", "description": "Open or toggle Airplane Mode to disable all wireless radios. Navigates to Airplane Mode controls to suspend cellular, Wi-Fi, and Bluetooth transmissions.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_dnd", "description": "Enable, disable, or toggle Do Not Disturb interruption filtering. Controls Android Do Not Disturb mode via NotificationManager to silence incoming calls and alerts.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, toggle)", "enum": [ "on", "off", "toggle" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_battery_saver", "description": "Enable, disable, or open Battery Saver low-power settings. Controls Android Battery Saver mode to restrict background activity and extend battery life.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_nfc", "description": "Enable, disable, or open NFC contactless communication settings. Controls the Near Field Communication (NFC) radio used for tap-to-pay and NFC tag reading.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_hotspot", "description": "Enable, disable, or open Wi-Fi hotspot and tethering settings. Manages the device portable Wi-Fi hotspot to share mobile internet with other devices.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_location", "description": "Enable, disable, or open device GPS and location services settings. Opens Android Location Services settings to toggle GPS positioning and location accuracy.", "parameters": { "type": "object", "properties": { "state": { "type": "string", "description": "state (allowed values: on, off, open_panel)", "enum": [ "on", "off", "open_panel" ] } }, "required": [ "state" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_auto_rotate", "description": "Enable or lock automatic screen orientation rotation. Sets ACCELEROMETER_ROTATION in Android Settings.System to enable or disable portrait/landscape auto-rotate.", "parameters": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "enabled" } }, "required": [ "enabled" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "toggle_dark_mode", "description": "Switch system appearance between dark mode and light theme. Toggles dark theme or opens Android Display dark-mode configuration.", "parameters": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "enabled" } }, "required": [ "enabled" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "set_volume", "description": "Adjust absolute or relative audio volume on a specific Android audio stream. Sets media, ring, alarm, notification, or call volume either to an exact percentage or by a relative step delta.", "parameters": { "type": "object", "properties": { "stream": { "type": "string", "description": "stream (allowed values: media, ring, alarm, notification, call) (default: media)", "enum": [ "media", "ring", "alarm", "notification", "call" ] }, "level_percent": { "type": "integer", "description": "level percent (range: 0 to 100)" }, "delta_percent": { "type": "integer", "description": "delta percent (range: -100 to 100)" } }, "required": [ "stream" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "mute_audio", "description": "Mute, unmute, or switch the device ringer/media audio to vibrate mode. Controls Android AudioManager ringer mode (normal, silent, vibrate) and stream mute flags.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: mute, unmute, vibrate)", "enum": [ "mute", "unmute", "vibrate" ] }, "stream": { "type": "string", "description": "stream (allowed values: all, media, ring) (default: all)", "enum": [ "all", "media", "ring" ] } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "set_brightness", "description": "Set manual display backlight percentage or toggle adaptive auto-brightness. Updates SCREEN_BRIGHTNESS or SCREEN_BRIGHTNESS_MODE in Android Settings.System.", "parameters": { "type": "object", "properties": { "level_percent": { "type": "integer", "description": "level percent (range: 0 to 100)" }, "adaptive_auto": { "type": "boolean", "description": "adaptive auto" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "set_screen_timeout", "description": "Configure idle screen sleep timeout duration. Updates SCREEN_OFF_TIMEOUT in Android Settings.System to control when the display locks automatically.", "parameters": { "type": "object", "properties": { "timeout_seconds": { "type": "integer", "description": "timeout seconds (allowed values: 15, 30, 60, 120, 300, 600, 1800)", "enum": [ 15, 30, 60, 120, 300, 600, 1800 ] } }, "required": [ "timeout_seconds" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "set_alarm", "description": "Schedule a one-time or recurring alarm in the device Clock app. Dispatches AlarmClock.ACTION_SET_ALARM with 24-hour time, optional label, and weekday recurrence.", "parameters": { "type": "object", "properties": { "hour": { "type": "integer", "description": "hour (range: 0 to 23)" }, "minute": { "type": "integer", "description": "minute (range: 0 to 59)" }, "label": { "type": "string", "description": "label" }, "days_of_week": { "type": "array", "description": "days of week", "items": { "type": "integer" } }, "vibrate": { "type": "boolean", "description": "vibrate (default: True)" } }, "required": [ "hour", "minute" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "show_alarms", "description": "Open the Clock alarms list to view configured alarms. Launches AlarmClock.ACTION_SHOW_ALARMS to display all scheduled alarms on the device.", "parameters": { "type": "object", "properties": {} }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "dismiss_or_delete_alarm", "description": "Dismiss, snooze, or delete an existing alarm by time, label, or next scheduled. Uses AlarmClock.ACTION_DISMISS_ALARM or ACTION_SNOOZE_ALARM with conditional target matching.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: dismiss, snooze, delete)", "enum": [ "dismiss", "snooze", "delete" ] }, "search_mode": { "type": "string", "description": "search mode (allowed values: next_alarm, by_time, by_label, all)", "enum": [ "next_alarm", "by_time", "by_label", "all" ] }, "hour": { "type": "integer", "description": "hour (range: 0 to 23)" }, "minute": { "type": "integer", "description": "minute (range: 0 to 59)" }, "label": { "type": "string", "description": "label" } }, "required": [ "action", "search_mode" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "set_timer", "description": "Start a countdown timer for a specified number of seconds. Dispatches AlarmClock.ACTION_SET_TIMER with duration_seconds and optional label.", "parameters": { "type": "object", "properties": { "duration_seconds": { "type": "integer", "description": "duration seconds (range: 1 to )" }, "label": { "type": "string", "description": "label" }, "skip_ui": { "type": "boolean", "description": "skip ui (default: True)" } }, "required": [ "duration_seconds" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "manage_timer", "description": "View, pause, resume, or cancel active countdown timers. Manages running timers in the system Clock app via AlarmClock timer intents.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: show, pause, resume, cancel)", "enum": [ "show", "pause", "resume", "cancel" ] }, "label": { "type": "string", "description": "label" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "control_stopwatch", "description": "Open, start, stop, lap, or reset the device stopwatch. Controls elapsed-time stopwatch tracking in the Clock application.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: open, start, stop, lap, reset)", "enum": [ "open", "start", "stop", "lap", "reset" ] } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "take_photo", "description": "Capture a still photo or selfie using the front or rear camera. Launches camera capture with optional front/rear facing selection and countdown delay.", "parameters": { "type": "object", "properties": { "camera_facing": { "type": "string", "description": "camera facing (allowed values: rear, front) (default: rear)", "enum": [ "rear", "front" ] }, "timer_seconds": { "type": "integer", "description": "timer seconds (range: 0 to 30) (default: 0)" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "take_screenshot", "description": "Capture a screenshot of the current device screen. Triggers AccessibilityService.GLOBAL_ACTION_TAKE_SCREENSHOT to save the visible display.", "parameters": { "type": "object", "properties": {} }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "lock_screen", "description": "Immediately lock the device screen and put the display to sleep. Triggers AccessibilityService.GLOBAL_ACTION_LOCK_SCREEN.", "parameters": { "type": "object", "properties": {} }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "power_menu_action", "description": "Open the system power dialog to shut down or restart the device. Triggers AccessibilityService.GLOBAL_ACTION_POWER_DIALOG for safe user confirmation of reboot or shutdown.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: open_power_dialog, restart, power_off)", "enum": [ "open_power_dialog", "restart", "power_off" ] } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "get_battery_status", "description": "Read battery percentage, charging status, power source, and battery temperature. Queries Android BatteryManager sticky intent extras for real-time battery diagnostics.", "parameters": { "type": "object", "properties": {} }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "get_storage_status", "description": "Inspect internal storage capacity, free space, and usage percentage. Queries Android StatFs on the internal data partition to return total and available bytes.", "parameters": { "type": "object", "properties": {} }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "open_settings_page", "description": "Navigate directly to a specific Android system settings screen. Launches the target Settings.ACTION_* screen such as Apps, Security, Accessibility, or Developer Options.", "parameters": { "type": "object", "properties": { "section": { "type": "string", "description": "section (allowed values: main, wifi, bluetooth, display, sound, battery, storage, apps, security, location, accessibility, developer)", "enum": [ "main", "wifi", "bluetooth", "display", "sound", "battery", "storage", "apps", "security", "location", "accessibility", "developer" ] } }, "required": [ "section" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "launch_app", "description": "Launch an installed application by human-readable app name or Android package ID. Resolves installed launcher activities via PackageManager and starts the main launch intent.", "parameters": { "type": "object", "properties": { "app_name": { "type": "string", "description": "app name" }, "package_name": { "type": "string", "description": "package name" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "open_url", "description": "Open a web address in the default browser. Dispatches Intent.ACTION_VIEW for HTTP/HTTPS URLs.", "parameters": { "type": "object", "properties": { "url": { "type": "string", "description": "url (format: uri)" } }, "required": [ "url" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "control_media_playback", "description": "Control active media playback across music, podcast, and video players. Dispatches hardware media key events (play, pause, next, previous, stop) via AudioManager.", "parameters": { "type": "object", "properties": { "command": { "type": "string", "description": "command (allowed values: play, pause, toggle_play_pause, next, previous, replay, stop)", "enum": [ "play", "pause", "toggle_play_pause", "next", "previous", "replay", "stop" ] } }, "required": [ "command" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "read_notifications", "description": "Read and filter active status-bar notifications from installed apps. Queries Kritha's NotificationListenerService buffer to inspect recent messages and alerts.", "parameters": { "type": "object", "properties": { "app_filter": { "type": "string", "description": "app filter" }, "limit": { "type": "integer", "description": "limit (range: 1 to 25) (default: 10)" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "reply_notification", "description": "Send an inline direct reply to an active messaging notification. Invokes the notification's RemoteInput PendingIntent to reply without opening the source app.", "parameters": { "type": "object", "properties": { "notification_key": { "type": "string", "description": "notification key" }, "reply_text": { "type": "string", "description": "reply text" } }, "required": [ "notification_key", "reply_text" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "screen_ui_automation", "description": "Inspect and interact with on-screen UI nodes inside third-party apps. Performs multi-step AccessibilityNodeInfo clicks, text entry, and scrolling to complete UI tasks.", "parameters": { "type": "object", "properties": { "goal": { "type": "string", "description": "goal" }, "target_package": { "type": "string", "description": "target package" } }, "required": [ "goal" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "make_phone_call", "description": "Place a cellular voice call to a saved contact or phone number. Resolves contact phone numbers via ContactsContract and initiates Intent.ACTION_CALL.", "parameters": { "type": "object", "properties": { "contact_name": { "type": "string", "description": "contact name" }, "phone_number": { "type": "string", "description": "phone number" }, "speakerphone": { "type": "boolean", "description": "speakerphone (default: False)" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "get_call_logs", "description": "Query recent missed, incoming, or outgoing phone call logs. Reads CallLog.Calls content provider entries with optional direction filtering.", "parameters": { "type": "object", "properties": { "filter": { "type": "string", "description": "filter (allowed values: all, missed, incoming, outgoing) (default: all)", "enum": [ "all", "missed", "incoming", "outgoing" ] }, "limit": { "type": "integer", "description": "limit (range: 1 to 50) (default: 10)" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "send_sms", "description": "Send an SMS or RCS text message to a contact or phone number. Resolves recipient phone numbers and sends a text message via SmsManager or default messaging intent.", "parameters": { "type": "object", "properties": { "recipient_name": { "type": "string", "description": "recipient name" }, "phone_number": { "type": "string", "description": "phone number" }, "body": { "type": "string", "description": "body" } }, "required": [ "body" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "send_whatsapp_message", "description": "Send a WhatsApp chat message to a contact or phone number. Resolves WhatsApp contact JID/phone and opens or dispatches a message via com.whatsapp.", "parameters": { "type": "object", "properties": { "recipient_name": { "type": "string", "description": "recipient name" }, "phone_number": { "type": "string", "description": "phone number" }, "message": { "type": "string", "description": "message" } }, "required": [ "message" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "make_whatsapp_call", "description": "Initiate a WhatsApp voice or video call with a contact. Triggers WhatsApp VoIP audio or video call intent for a resolved contact.", "parameters": { "type": "object", "properties": { "recipient_name": { "type": "string", "description": "recipient name" }, "call_type": { "type": "string", "description": "call type (allowed values: audio, video) (default: audio)", "enum": [ "audio", "video" ] } }, "required": [ "recipient_name" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_samsung_notes", "description": "Create, search, or append notes inside the native Samsung Notes app on Galaxy devices. OEM connector for Samsung Galaxy Notes content provider and action intents.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, search, append)", "enum": [ "create", "search", "append" ] }, "title": { "type": "string", "description": "title" }, "content": { "type": "string", "description": "content" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_samsung_calendar", "description": "Create, list, or delete events inside Samsung Calendar. OEM connector targeting Samsung Galaxy Calendar local and synced schedules.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, list, delete)", "enum": [ "create", "list", "delete" ] }, "title": { "type": "string", "description": "title" }, "start_iso": { "type": "string", "description": "start iso" }, "end_iso": { "type": "string", "description": "end iso" }, "event_id": { "type": "string", "description": "event id" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_samsung_reminder", "description": "Create, list, or complete to-do items in Samsung Reminder. OEM connector for Samsung Galaxy Reminder tasks and time/location alerts.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, list, complete)", "enum": [ "create", "list", "complete" ] }, "title": { "type": "string", "description": "title" }, "due_iso": { "type": "string", "description": "due iso" }, "reminder_id": { "type": "string", "description": "reminder id" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_samsung_clock", "description": "Manage alarms and timers directly in Samsung Clock. OEM connector for Samsung One UI Clock alarms, timers, and world clock.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: set_alarm, set_timer, list)", "enum": [ "set_alarm", "set_timer", "list" ] }, "value": { "type": "string", "description": "value" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_samsung_gallery", "description": "Search photos, screenshots, and albums in Samsung Gallery. OEM connector for Samsung Gallery semantic tags, albums, and media URIs.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_oneplus_notes", "description": "Create or search notes in OnePlus OxygenOS Notes. OEM connector for native OnePlus Notes memos and checklists.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, search)", "enum": [ "create", "search" ] }, "title": { "type": "string", "description": "title" }, "content": { "type": "string", "description": "content" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_oppo_notes_calendar", "description": "Create or search entries in OPPO ColorOS Notes, Calendar, and Mind Space. OEM connector for OPPO ColorOS productivity apps and Mind Space memory hub.", "parameters": { "type": "object", "properties": { "app": { "type": "string", "description": "app (allowed values: notes, calendar, mind_space)", "enum": [ "notes", "calendar", "mind_space" ] }, "action": { "type": "string", "description": "action (allowed values: create, search)", "enum": [ "create", "search" ] }, "payload": { "type": "string", "description": "payload" } }, "required": [ "app", "action", "payload" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_xiaomi_notes_calendar", "description": "Create or search notes and events in Xiaomi HyperOS / MIUI Notes and Calendar. OEM connector for Xiaomi, Redmi, and POCO native Notes and Calendar apps.", "parameters": { "type": "object", "properties": { "app": { "type": "string", "description": "app (allowed values: notes, calendar)", "enum": [ "notes", "calendar" ] }, "action": { "type": "string", "description": "action (allowed values: create, search)", "enum": [ "create", "search" ] }, "payload": { "type": "string", "description": "payload" } }, "required": [ "app", "action", "payload" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_honor_notes_calendar", "description": "Create or search items in HONOR MagicOS Notes and Calendar. OEM connector for HONOR native Notes and Calendar applications.", "parameters": { "type": "object", "properties": { "app": { "type": "string", "description": "app (allowed values: notes, calendar)", "enum": [ "notes", "calendar" ] }, "action": { "type": "string", "description": "action (allowed values: create, search)", "enum": [ "create", "search" ] }, "payload": { "type": "string", "description": "payload" } }, "required": [ "app", "action", "payload" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "oem_lenovo_tecno_connectors", "description": "Create or search entries in Lenovo Notes or TECNO HiOS Calendar. OEM connector for Lenovo ZUI Notes and TECNO HiOS Calendar apps.", "parameters": { "type": "object", "properties": { "app": { "type": "string", "description": "app (allowed values: lenovo_notes, tecno_calendar)", "enum": [ "lenovo_notes", "tecno_calendar" ] }, "action": { "type": "string", "description": "action (allowed values: create, search)", "enum": [ "create", "search" ] }, "payload": { "type": "string", "description": "payload" } }, "required": [ "app", "action", "payload" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "gmail_search_read", "description": "Search Gmail inbox threads and read or summarize email messages. Queries Gmail API with search operators (from:, subject:, is:unread) and fetches thread content.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "max_results": { "type": "integer", "description": "max results (range: 1 to 50) (default: 10)" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "gmail_draft_send", "description": "Compose a Gmail draft or send an email to specified recipients. Creates or sends MIME email messages through Gmail API with recipient, subject, and body validation.", "parameters": { "type": "object", "properties": { "mode": { "type": "string", "description": "mode (allowed values: draft, send) (default: draft)", "enum": [ "draft", "send" ] }, "to": { "type": "array", "description": "to", "items": { "type": "string" } }, "subject": { "type": "string", "description": "subject" }, "body": { "type": "string", "description": "body" } }, "required": [ "to", "subject", "body" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_drive_search", "description": "Search files, folders, PDFs, and Workspace documents in Google Drive. Queries Google Drive API v3 by filename, full-text keywords, or MIME type.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "mime_type": { "type": "string", "description": "mime type" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_docs_manage", "description": "Create new Google Docs, read document text, or append content to an existing Doc. Interacts with Google Docs API with conditional field requirements per action.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, read, append)", "enum": [ "create", "read", "append" ] }, "document_id": { "type": "string", "description": "document id" }, "title": { "type": "string", "description": "title" }, "content": { "type": "string", "description": "content" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_sheets_manage", "description": "Create spreadsheets, read A1 ranges, or append rows in Google Sheets. Interacts with Google Sheets API v4 using conditional validation for create, read_range, and append_rows.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, read_range, append_rows)", "enum": [ "create", "read_range", "append_rows" ] }, "spreadsheet_id": { "type": "string", "description": "spreadsheet id" }, "title": { "type": "string", "description": "title" }, "range": { "type": "string", "description": "range" }, "rows": { "type": "array", "description": "rows", "items": { "type": "array" } } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_slides_manage", "description": "Summarize existing Google Slides presentations or create new slide decks. Interacts with Google Slides API v1 to extract slide text or initialize presentations.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: summarize, create)", "enum": [ "summarize", "create" ] }, "presentation_id": { "type": "string", "description": "presentation id" }, "title": { "type": "string", "description": "title" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "calendar_manage_events", "description": "Create, list, update, or delete calendar events and check schedule availability. Manages events across local Android CalendarProvider and synced Google Calendar accounts.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, list, update, delete)", "enum": [ "create", "list", "update", "delete" ] }, "title": { "type": "string", "description": "title" }, "start_iso": { "type": "string", "description": "start iso" }, "end_iso": { "type": "string", "description": "end iso" }, "location": { "type": "string", "description": "location" }, "event_id": { "type": "string", "description": "event id" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "notes_keep_manage", "description": "Create, append to, or search text notes and bulleted checklists. Stores notes and shopping lists locally in Kritha SQLite or syncs with Google Keep.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create_note, create_list, append, search)", "enum": [ "create_note", "create_list", "append", "search" ] }, "title": { "type": "string", "description": "title" }, "content": { "type": "string", "description": "content" }, "items": { "type": "array", "description": "items", "items": { "type": "string" } }, "query": { "type": "string", "description": "query" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "tasks_manage", "description": "Create, list, complete, or delete to-do tasks and due-date reminders. Manages personal task lists locally or via Google Tasks synchronization.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: create, list, complete, delete)", "enum": [ "create", "list", "complete", "delete" ] }, "title": { "type": "string", "description": "title" }, "due_iso": { "type": "string", "description": "due iso" }, "task_id": { "type": "string", "description": "task id" } }, "required": [ "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_chat_meet", "description": "Search Google Chat spaces/messages or list/create Google Meet video links. Connects to Google Workspace Chat and Meet APIs for team messaging and video conferencing.", "parameters": { "type": "object", "properties": { "service": { "type": "string", "description": "service (allowed values: chat, meet)", "enum": [ "chat", "meet" ] }, "action": { "type": "string", "description": "action (allowed values: search, list_upcoming, create_link)", "enum": [ "search", "list_upcoming", "create_link" ] }, "query": { "type": "string", "description": "query" } }, "required": [ "service", "action" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "play_music_media", "description": "Search and play songs, albums, artists, playlists, or radio stations in YouTube Music or the default media app. Dispatches MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH to YouTube Music or installed audio players.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "media_type": { "type": "string", "description": "media type (allowed values: song, album, artist, playlist, radio) (default: song)", "enum": [ "song", "album", "artist", "playlist", "radio" ] }, "provider_package": { "type": "string", "description": "provider package" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_home_control", "description": "Control smart home lights, thermostats, switches, locks, cameras, and routines via Google Home. Executes HomeGraph commands across smart devices, rooms, and household automation routines.", "parameters": { "type": "object", "properties": { "target_type": { "type": "string", "description": "target type (allowed values: device, room, routine)", "enum": [ "device", "room", "routine" ] }, "target_name": { "type": "string", "description": "target name" }, "command": { "type": "string", "description": "command" }, "value": { "type": "string", "description": "value" } }, "required": [ "target_type", "target_name", "command" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_photos_search", "description": "Search personal photo and video libraries by people, dates, locations, or objects. Queries Google Photos Library API with semantic and date-range filters.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "date_from": { "type": "string", "description": "date from (format: date)" }, "date_to": { "type": "string", "description": "date to (format: date)" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_play_store", "description": "Search for Android applications or open an app listing in the Google Play Store. Launches market://search or market://details intents to browse or install Android apps.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "package_name": { "type": "string", "description": "package name" } } }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "google_workspace_admin_analytics", "description": "Query Google Classroom coursework, Google Ads, Google Analytics, Business Profile, or NotebookLM notebooks. Unified connector for specialized Google Workspace, education, marketing, and notebook services.", "parameters": { "type": "object", "properties": { "service": { "type": "string", "description": "service (allowed values: classroom, ads, analytics, business_profile, notebooklm)", "enum": [ "classroom", "ads", "analytics", "business_profile", "notebooklm" ] }, "query": { "type": "string", "description": "query" } }, "required": [ "service", "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "web_search", "description": "Search the live web for current news, weather, sports scores, facts, and real-time grounding. Executes real-time web search queries and returns grounded snippets and source URLs.", "parameters": { "type": "object", "properties": { "queries": { "type": "array", "description": "queries", "items": { "type": "string" } } }, "required": [ "queries" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "maps_search_places", "description": "Find nearby businesses, restaurants, pharmacies, opening hours, ratings, and addresses. Queries Google Maps / local place search for points of interest and venue metadata.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "near_location": { "type": "string", "description": "near location" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "maps_navigation_directions", "description": "Start turn-by-turn navigation or compute travel route ETA between origin and destination. Launches Google Maps turn-by-turn navigation intent or calculates driving/walking/transit routes.", "parameters": { "type": "object", "properties": { "destination": { "type": "string", "description": "destination" }, "origin": { "type": "string", "description": "origin" }, "mode": { "type": "string", "description": "mode (allowed values: driving, walking, transit, bicycling) (default: driving)", "enum": [ "driving", "walking", "transit", "bicycling" ] } }, "required": [ "destination" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "youtube_search_summarize", "description": "Search YouTube videos or summarize the transcript and key points of a YouTube video URL. Fetches YouTube video search results or extracts captions to summarize video content.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: search, summarize_url)", "enum": [ "search", "summarize_url" ] }, "query_or_url": { "type": "string", "description": "query or url" } }, "required": [ "action", "query_or_url" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "travel_flights_search", "description": "Search real-time commercial flight schedules, airlines, stops, and ticket fares. Queries Google Flights schedules using IATA airport codes and travel dates.", "parameters": { "type": "object", "properties": { "origin_iata": { "type": "string", "description": "origin iata" }, "destination_iata": { "type": "string", "description": "destination iata" }, "departure_date": { "type": "string", "description": "departure date (format: date)" }, "return_date": { "type": "string", "description": "return date (format: date)" }, "cabin_class": { "type": "string", "description": "cabin class (allowed values: economy, premium_economy, business, first) (default: economy)", "enum": [ "economy", "premium_economy", "business", "first" ] } }, "required": [ "origin_iata", "destination_iata", "departure_date" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "travel_hotels_search", "description": "Search hotel availability, nightly rates, amenities, and guest ratings. Queries Google Hotels accommodation listings for a destination and check-in/out window.", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "location" }, "check_in_date": { "type": "string", "description": "check in date (format: date)" }, "check_out_date": { "type": "string", "description": "check out date (format: date)" }, "guests": { "type": "integer", "description": "guests (range: 1 to ) (default: 2)" } }, "required": [ "location", "check_in_date", "check_out_date" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "code_execution_sandbox", "description": "Execute isolated Python or JavaScript snippets for exact math, data parsing, and verification. Runs sandboxed code and captures stdout, stderr, and exit status.", "parameters": { "type": "object", "properties": { "language": { "type": "string", "description": "language (allowed values: python, javascript)", "enum": [ "python", "javascript" ] }, "code": { "type": "string", "description": "code" } }, "required": [ "language", "code" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "url_context_reader", "description": "Fetch, extract, and convert clean readable text from a user-provided web URL. Downloads HTML/Markdown content from an HTTP/HTTPS link and strips boilerplate for LLM context.", "parameters": { "type": "object", "properties": { "url": { "type": "string", "description": "url (format: uri)" } }, "required": [ "url" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "local_file_rag_search", "description": "Perform semantic vector retrieval across attached PDFs, notes, and local documents. Searches embedded document chunks in SQLite to ground answers in user-uploaded files.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "query" }, "file_ids": { "type": "array", "description": "file ids", "items": { "type": "string" } }, "top_k": { "type": "integer", "description": "top k (range: 1 to 20) (default: 5)" } }, "required": [ "query" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "canvas_artifact_editor", "description": "Create or update standalone editable documents, code files, or interactive HTML previews in a side-by-side canvas. Manages structured multi-file or single-document artifacts outside linear chat bubbles.", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "title" }, "artifact_type": { "type": "string", "description": "artifact type (allowed values: markdown, html, code)", "enum": [ "markdown", "html", "code" ] }, "content": { "type": "string", "description": "content" } }, "required": [ "title", "artifact_type", "content" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "generate_image", "description": "Generate or edit raster images and illustrations from descriptive text prompts. Calls configured image generation backend models (e.g., Imagen / FLUX / OpenRouter) and saves output locally.", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "prompt" }, "aspect_ratio": { "type": "string", "description": "aspect ratio (allowed values: 1:1, 16:9, 9:16, 4:3) (default: 1:1)", "enum": [ "1:1", "16:9", "9:16", "4:3" ] } }, "required": [ "prompt" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "generate_video", "description": "Synthesize short video clips and motion scenes from text prompts. Calls video generation model providers (e.g., Veo) to render MP4 clips.", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "prompt" }, "duration_seconds": { "type": "integer", "description": "duration seconds (range: 2 to 30) (default: 5)" } }, "required": [ "prompt" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "deep_research", "description": "Conduct multi-step autonomous web research and synthesize a cited Markdown report. Plans sub-queries, reads multiple sources iteratively, and compiles a structured research dossier.", "parameters": { "type": "object", "properties": { "research_topic": { "type": "string", "description": "research topic" } }, "required": [ "research_topic" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "scheduled_actions", "description": "Schedule one-time or recurring background assistant prompts and automated briefings. Registers WorkManager / background cron tasks that execute prompts on a defined schedule.", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "prompt" }, "cron_or_iso": { "type": "string", "description": "cron or iso" } }, "required": [ "prompt", "cron_or_iso" ] }, "return": { "type": "string" } } }, { "type": "function", "function": { "name": "memory_store_recall", "description": "Save, semantically recall, or delete persistent user preferences and facts across conversations. Reads and writes user memory items in local SQLite storage with conditional validation per action.", "parameters": { "type": "object", "properties": { "action": { "type": "string", "description": "action (allowed values: save, recall, delete)", "enum": [ "save", "recall", "delete" ] }, "fact": { "type": "string", "description": "fact" }, "query": { "type": "string", "description": "query" } }, "required": [ "action" ] }, "return": { "type": "string" } } } ]