> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# google-drive

> File storage, folders, permissions, and sharing

**Server path:** `/google-drive` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`google-drive_list_files`](#google-drive_list_files)                               | List files from Google Drive with optional shared drive access. IMPORTANT: This tool paginates. Results may be incomplete. Always check pagination.hasMore in the response — if true, you MUST call again with pageToken set to pagination.nextPageToken to get all results. Do not report results as complete without checking pagination.hasMore.                                                         |
| [`google-drive_get_file_information`](#google-drive_get_file_information)           | Retrieve metadata and information about a Google Drive file                                                                                                                                                                                                                                                                                                                                                 |
| [`google-drive_upload_file`](#google-drive_upload_file)                             | Upload a new file to Google Drive from a URL source                                                                                                                                                                                                                                                                                                                                                         |
| [`google-drive_delete_file`](#google-drive_delete_file)                             | Delete a file from Google Drive                                                                                                                                                                                                                                                                                                                                                                             |
| [`google-drive_search_files`](#google-drive_search_files)                           | Search for files in Google Drive using query syntax. IMPORTANT: This tool paginates. Results may be incomplete. Always check pagination.hasMore in the response — if true, you MUST call again with pageToken set to pagination.nextPageToken to get all results. Do not report results as complete without checking pagination.hasMore.                                                                    |
| [`google-drive_find_by_name`](#google-drive_find_by_name)                           | Find files and folders by name and get their IDs. This tool automatically fetches ALL matching results across multiple pages — no manual pagination needed. Results are complete unless truncatedAtMax is true.                                                                                                                                                                                             |
| [`google-drive_list_files_in_folder`](#google-drive_list_files_in_folder)           | PREFERRED: Use folderName instead of folderId - no find\_by\_name lookup needed! List files in a Google Drive folder by name (exact match) or ID. This tool automatically fetches ALL files in the folder across multiple pages — no manual pagination needed. Results are complete unless truncatedAtMax is true.                                                                                          |
| [`google-drive_download_file`](#google-drive_download_file)                         | Download a file from Google Drive and store it as an artifact. Returns a link to the stored file, metadata, and a text preview for supported types (PDF, DOCX, XLSX, PPTX). NOT for Google Docs/Sheets/Slides — those require their respective MCP servers (Google Docs MCP, Google Sheets MCP). If those connectors are not installed, recommend the user install them from the Pinkfish connections page. |
| [`google-drive_create_folder`](#google-drive_create_folder)                         | Create a new folder in Google Drive                                                                                                                                                                                                                                                                                                                                                                         |
| [`google-drive_move_file`](#google-drive_move_file)                                 | Move a file to a different folder in Google Drive                                                                                                                                                                                                                                                                                                                                                           |
| [`google-drive_copy_file`](#google-drive_copy_file)                                 | Copy a file in Google Drive                                                                                                                                                                                                                                                                                                                                                                                 |
| [`google-drive_add_file_sharing`](#google-drive_add_file_sharing)                   | Add sharing permission to a file or folder in Google Drive                                                                                                                                                                                                                                                                                                                                                  |
| [`google-drive_create_file_from_text`](#google-drive_create_file_from_text)         | Create a new file from text content in Google Drive                                                                                                                                                                                                                                                                                                                                                         |
| [`google-drive_add_comment`](#google-drive_add_comment)                             | Add a comment to a file in Google Drive                                                                                                                                                                                                                                                                                                                                                                     |
| [`google-drive_list_comments`](#google-drive_list_comments)                         | List comments on a file in Google Drive                                                                                                                                                                                                                                                                                                                                                                     |
| [`google-drive_reply_to_comment`](#google-drive_reply_to_comment)                   | Reply to an existing comment on a Google Drive file                                                                                                                                                                                                                                                                                                                                                         |
| [`google-drive_resolve_comment`](#google-drive_resolve_comment)                     | Mark a comment as resolved on a Google Drive file                                                                                                                                                                                                                                                                                                                                                           |
| [`google-drive_delete_comment`](#google-drive_delete_comment)                       | Delete a comment from a Google Drive file                                                                                                                                                                                                                                                                                                                                                                   |
| [`google-drive_create_from_template`](#google-drive_create_from_template)           | Create a new Google Drive file (Docs, Sheets, Slides, etc.) from an existing template. Optionally apply text replacements for Google Docs files (e.g., \{\{NAME}} -> "John Doe").                                                                                                                                                                                                                           |
| [`google-drive_move_to_trash`](#google-drive_move_to_trash)                         | Move a file to trash in Google Drive (soft delete)                                                                                                                                                                                                                                                                                                                                                          |
| [`google-drive_update_file`](#google-drive_update_file)                             | Update file metadata in Google Drive                                                                                                                                                                                                                                                                                                                                                                        |
| [`google-drive_get_current_user`](#google-drive_get_current_user)                   | Get current user information and storage quota                                                                                                                                                                                                                                                                                                                                                              |
| [`google-drive_upload_csv_as_sheet`](#google-drive_upload_csv_as_sheet)             | Upload a CSV file from a URL and convert it to a Google Sheet. The CSV content is automatically converted to Google Sheets format.                                                                                                                                                                                                                                                                          |
| [`google-drive_list_trigger_capabilities`](#google-drive_list_trigger_capabilities) | List available trigger capabilities for Google Drive                                                                                                                                                                                                                                                                                                                                                        |
| [`google-drive_poll_trigger`](#google-drive_poll_trigger)                           | Poll Google Drive for new or removed items. Can monitor entire Drive or a specific file/folder URL.                                                                                                                                                                                                                                                                                                         |

***

## google-drive\_list\_files

List files from Google Drive with optional shared drive access. IMPORTANT: This tool paginates. Results may be incomplete. Always check pagination.hasMore in the response — if true, you MUST call again with pageToken set to pagination.nextPageToken to get all results. Do not report results as complete without checking pagination.hasMore.

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                                      |
| ----------- | ------- | -------- | ------- | ---------------------------------------------------------------- |
| `pageSize`  | string  | No       | `25`    | Number of files to retrieve per page (maximum 1000)              |
| `pageToken` | string  | No       | —       | Token from a previous response to fetch the next page of results |
| `isShared`  | boolean | No       | `false` | Whether to include files from shared drives and folders          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for Google Drive Connection"
      },
      "pageSize": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "effects"
          }
        ],
        "default": 25,
        "description": "Number of files to retrieve per page (maximum 1000)"
      },
      "pageToken": {
        "type": "string",
        "description": "Token from a previous response to fetch the next page of results"
      },
      "isShared": {
        "type": "boolean",
        "default": false,
        "description": "Whether to include files from shared drives and folders"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## google-drive\_get\_file\_information

Retrieve metadata and information about a Google Drive file

**Parameters:**

| Parameter | Type   | Required | Default | Description                                               |
| --------- | ------ | -------- | ------- | --------------------------------------------------------- |
| `fileId`  | string | Yes      | —       | Unique identifier of the file to retrieve information for |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "Unique identifier of the file to retrieve information for"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_upload\_file

Upload a new file to Google Drive from a URL source

**Parameters:**

| Parameter | Type   | Required | Default | Description                               |
| --------- | ------ | -------- | ------- | ----------------------------------------- |
| `fileUrl` | string | Yes      | —       | URL of the file to upload to Google Drive |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileUrl": {
        "type": "string",
        "description": "URL of the file to upload to Google Drive"
      }
    },
    "required": [
      "PCID",
      "fileUrl"
    ]
  }
  ```
</Expandable>

***

## google-drive\_delete\_file

Delete a file from Google Drive

**Parameters:**

| Parameter | Type   | Required | Default | Description                             |
| --------- | ------ | -------- | ------- | --------------------------------------- |
| `fileId`  | string | Yes      | —       | Unique identifier of the file to delete |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "Unique identifier of the file to delete"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_search\_files

Search for files in Google Drive using query syntax. IMPORTANT: This tool paginates. Results may be incomplete. Always check pagination.hasMore in the response — if true, you MUST call again with pageToken set to pagination.nextPageToken to get all results. Do not report results as complete without checking pagination.hasMore.

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                                                                                                                                                                                                                  |
| ----------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`     | string | Yes      | —       | Query string to search for files. Can be a filename (e.g., "document.docx") or structured query (e.g., "mimeType=application/vnd.google-apps.document").<br />All string values (e.g. file, folder IDs, mimeType, etc.) must be enclosed in single quotes (never double quotes) when used in the query string (e.g. 'fileid' or 'folderid'). |
| `pageToken` | string | No       | —       | Token from a previous response to fetch the next page of results                                                                                                                                                                                                                                                                             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "query": {
        "type": "string",
        "description": "Query string to search for files. Can be a filename (e.g., \"document.docx\") or structured query (e.g., \"mimeType=application/vnd.google-apps.document\").\n           All string values (e.g. file, folder IDs, mimeType, etc.) must be enclosed in single quotes (never double quotes) when used in the query string (e.g. 'fileid' or 'folderid')."
      },
      "pageToken": {
        "type": "string",
        "description": "Token from a previous response to fetch the next page of results"
      }
    },
    "required": [
      "PCID",
      "query"
    ]
  }
  ```
</Expandable>

***

## google-drive\_find\_by\_name

Find files and folders by name and get their IDs. This tool automatically fetches ALL matching results across multiple pages — no manual pagination needed. Results are complete unless truncatedAtMax is true.

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                |
| ------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`       | string  | Yes      | —       | Name to search for                                                                                                                                         |
| `exactMatch` | boolean | No       | `false` | If true, only returns items with exact name match. If false (default), returns partial matches.                                                            |
| `maxResults` | number  | No       | `500`   | Maximum number of results to return (default 500). Increase if you need more.                                                                              |
| `mimeType`   | string  | No       | `"any"` | Filter by type: "folder" for folders only, "document" for Google Docs, "spreadsheet" for Google Sheets, "presentation" for Slides, "any" for all (default) |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "name": {
        "type": "string",
        "description": "Name to search for"
      },
      "exactMatch": {
        "type": "boolean",
        "default": false,
        "description": "If true, only returns items with exact name match. If false (default), returns partial matches."
      },
      "maxResults": {
        "type": "number",
        "default": 500,
        "description": "Maximum number of results to return (default 500). Increase if you need more."
      },
      "mimeType": {
        "type": "string",
        "enum": [
          "folder",
          "document",
          "spreadsheet",
          "presentation",
          "any"
        ],
        "default": "any",
        "description": "Filter by type: \"folder\" for folders only, \"document\" for Google Docs, \"spreadsheet\" for Google Sheets, \"presentation\" for Slides, \"any\" for all (default)"
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## google-drive\_list\_files\_in\_folder

PREFERRED: Use folderName instead of folderId - no find\_by\_name lookup needed! List files in a Google Drive folder by name (exact match) or ID. This tool automatically fetches ALL files in the folder across multiple pages — no manual pagination needed. Results are complete unless truncatedAtMax is true.

**Parameters:**

| Parameter    | Type   | Required | Default | Description                                                                                                                             |
| ------------ | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `folderId`   | string | No       | —       | Google Drive folder ID to list files from. Use this if you already have the ID.                                                         |
| `folderName` | string | No       | —       | Folder name to find and list files from (exact match, uses first result). Simpler than folderId - no need to call find\_by\_name first. |
| `maxResults` | number | No       | `500`   | Maximum number of files to return (default 500). Increase if you need more.                                                             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for Google Drive Connection"
      },
      "folderId": {
        "type": "string",
        "description": "Google Drive folder ID to list files from. Use this if you already have the ID."
      },
      "folderName": {
        "type": "string",
        "description": "Folder name to find and list files from (exact match, uses first result). Simpler than folderId - no need to call find_by_name first."
      },
      "maxResults": {
        "type": "number",
        "default": 500,
        "description": "Maximum number of files to return (default 500). Increase if you need more."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## google-drive\_download\_file

Download a file from Google Drive and store it as an artifact. Returns a link to the stored file, metadata, and a text preview for supported types (PDF, DOCX, XLSX, PPTX). NOT for Google Docs/Sheets/Slides — those require their respective MCP servers (Google Docs MCP, Google Sheets MCP). If those connectors are not installed, recommend the user install them from the Pinkfish connections page.

**Parameters:**

| Parameter     | Type    | Required | Default | Description                                                                                                                                                                     |
| ------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fileId`      | string  | Yes      | —       | Google Drive file ID to download                                                                                                                                                |
| `stream`      | boolean | No       | `true`  | RECOMMENDED: true (default). Returns downloadUrl + auth headers for streaming. Set to false only for small files (\<2MB) requiring immediate base64 content.                    |
| `filename`    | string  | No       | —       | Custom filename for the downloaded file                                                                                                                                         |
| `extractText` | boolean | No       | `true`  | Automatically extracts text from supported formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files do not need extraction. Set to false to skip extraction. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "Google Drive file ID to download"
      },
      "stream": {
        "type": "boolean",
        "default": true,
        "description": "RECOMMENDED: true (default). Returns downloadUrl + auth headers for streaming. Set to false only for small files (<2MB) requiring immediate base64 content."
      },
      "filename": {
        "type": "string",
        "description": "Custom filename for the downloaded file"
      },
      "extractText": {
        "type": "boolean",
        "default": true,
        "description": "Automatically extracts text from supported formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files do not need extraction. Set to false to skip extraction."
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_create\_folder

Create a new folder in Google Drive

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                                                |
| ---------- | ------ | -------- | ------- | -------------------------------------------------------------------------- |
| `name`     | string | Yes      | —       | Name of the new folder                                                     |
| `parentId` | string | No       | —       | ID of the parent folder (if not specified, folder will be created in root) |
| `driveId`  | string | No       | —       | ID of the shared drive (for shared drive folders)                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "name": {
        "type": "string",
        "description": "Name of the new folder"
      },
      "parentId": {
        "type": "string",
        "description": "ID of the parent folder (if not specified, folder will be created in root)"
      },
      "driveId": {
        "type": "string",
        "description": "ID of the shared drive (for shared drive folders)"
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## google-drive\_move\_file

Move a file to a different folder in Google Drive

**Parameters:**

| Parameter           | Type      | Required | Default | Description                                                                                    |
| ------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
| `fileId`            | string    | Yes      | —       | ID of the file to move                                                                         |
| `newParentId`       | string    | Yes      | —       | ID of the destination folder                                                                   |
| `removeFromParents` | string\[] | No       | —       | Array of parent folder IDs to remove from (if not specified, removes from all current parents) |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to move"
      },
      "newParentId": {
        "type": "string",
        "description": "ID of the destination folder"
      },
      "removeFromParents": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Array of parent folder IDs to remove from (if not specified, removes from all current parents)"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "newParentId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_copy\_file

Copy a file in Google Drive

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                                                           |
| ---------- | ------ | -------- | ------- | ------------------------------------------------------------------------------------- |
| `fileId`   | string | Yes      | —       | ID of the file to copy                                                                |
| `name`     | string | No       | —       | Name for the copied file (if not specified, uses original name with "Copy of" prefix) |
| `parentId` | string | No       | —       | ID of the folder where the copy should be placed                                      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to copy"
      },
      "name": {
        "type": "string",
        "description": "Name for the copied file (if not specified, uses original name with \"Copy of\" prefix)"
      },
      "parentId": {
        "type": "string",
        "description": "ID of the folder where the copy should be placed"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_add\_file\_sharing

Add sharing permission to a file or folder in Google Drive

**Parameters:**

| Parameter               | Type    | Required | Default | Description                                         |
| ----------------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `fileId`                | string  | Yes      | —       | ID of the file or folder to share                   |
| `role`                  | string  | Yes      | —       | Role to grant (reader, writer, commenter, or owner) |
| `type`                  | string  | Yes      | —       | Type of grantee (user, group, domain, or anyone)    |
| `emailAddress`          | string  | No       | —       | Email address (required for user or group type)     |
| `domain`                | string  | No       | —       | Domain name (required for domain type)              |
| `sendNotificationEmail` | boolean | No       | `true`  | Whether to send notification email to the grantee   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file or folder to share"
      },
      "role": {
        "type": "string",
        "enum": [
          "reader",
          "writer",
          "commenter",
          "owner"
        ],
        "description": "Role to grant (reader, writer, commenter, or owner)"
      },
      "type": {
        "type": "string",
        "enum": [
          "user",
          "group",
          "domain",
          "anyone"
        ],
        "description": "Type of grantee (user, group, domain, or anyone)"
      },
      "emailAddress": {
        "type": "string",
        "description": "Email address (required for user or group type)"
      },
      "domain": {
        "type": "string",
        "description": "Domain name (required for domain type)"
      },
      "sendNotificationEmail": {
        "type": "boolean",
        "default": true,
        "description": "Whether to send notification email to the grantee"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "role",
      "type"
    ]
  }
  ```
</Expandable>

***

## google-drive\_create\_file\_from\_text

Create a new file from text content in Google Drive

**Parameters:**

| Parameter  | Type   | Required | Default        | Description                                                              |
| ---------- | ------ | -------- | -------------- | ------------------------------------------------------------------------ |
| `name`     | string | Yes      | —              | Name of the new file                                                     |
| `content`  | string | Yes      | —              | Text content for the file                                                |
| `mimeType` | string | No       | `"text/plain"` | MIME type of the file (default: text/plain)                              |
| `parentId` | string | No       | —              | ID of the parent folder (if not specified, file will be created in root) |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "name": {
        "type": "string",
        "description": "Name of the new file"
      },
      "content": {
        "type": "string",
        "description": "Text content for the file"
      },
      "mimeType": {
        "type": "string",
        "default": "text/plain",
        "description": "MIME type of the file (default: text/plain)"
      },
      "parentId": {
        "type": "string",
        "description": "ID of the parent folder (if not specified, file will be created in root)"
      }
    },
    "required": [
      "PCID",
      "name",
      "content"
    ]
  }
  ```
</Expandable>

***

## google-drive\_add\_comment

Add a comment to a file in Google Drive

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                |
| --------- | ------ | -------- | ------- | ---------------------------------------------------------- |
| `fileId`  | string | Yes      | —       | ID of the file to comment on                               |
| `content` | string | Yes      | —       | Content of the comment                                     |
| `anchor`  | string | No       | —       | Anchor for the comment (for specific location in document) |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to comment on"
      },
      "content": {
        "type": "string",
        "description": "Content of the comment"
      },
      "anchor": {
        "type": "string",
        "description": "Anchor for the comment (for specific location in document)"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "content"
    ]
  }
  ```
</Expandable>

***

## google-drive\_list\_comments

List comments on a file in Google Drive

**Parameters:**

| Parameter        | Type    | Required | Default | Description                          |
| ---------------- | ------- | -------- | ------- | ------------------------------------ |
| `fileId`         | string  | Yes      | —       | ID of the file to list comments for  |
| `includeDeleted` | boolean | No       | `false` | Whether to include deleted comments  |
| `pageSize`       | string  | No       | `20`    | Maximum number of comments to return |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to list comments for"
      },
      "includeDeleted": {
        "type": "boolean",
        "default": false,
        "description": "Whether to include deleted comments"
      },
      "pageSize": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "effects"
          }
        ],
        "default": 20,
        "description": "Maximum number of comments to return"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_reply\_to\_comment

Reply to an existing comment on a Google Drive file

**Parameters:**

| Parameter   | Type   | Required | Default | Description                   |
| ----------- | ------ | -------- | ------- | ----------------------------- |
| `fileId`    | string | Yes      | —       | ID of the file                |
| `commentId` | string | Yes      | —       | ID of the comment to reply to |
| `content`   | string | Yes      | —       | Reply text                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file"
      },
      "commentId": {
        "type": "string",
        "description": "ID of the comment to reply to"
      },
      "content": {
        "type": "string",
        "description": "Reply text"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "commentId",
      "content"
    ]
  }
  ```
</Expandable>

***

## google-drive\_resolve\_comment

Mark a comment as resolved on a Google Drive file

**Parameters:**

| Parameter   | Type   | Required | Default | Description                  |
| ----------- | ------ | -------- | ------- | ---------------------------- |
| `fileId`    | string | Yes      | —       | ID of the file               |
| `commentId` | string | Yes      | —       | ID of the comment to resolve |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file"
      },
      "commentId": {
        "type": "string",
        "description": "ID of the comment to resolve"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "commentId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_delete\_comment

Delete a comment from a Google Drive file

**Parameters:**

| Parameter   | Type   | Required | Default | Description                 |
| ----------- | ------ | -------- | ------- | --------------------------- |
| `fileId`    | string | Yes      | —       | ID of the file              |
| `commentId` | string | Yes      | —       | ID of the comment to delete |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file"
      },
      "commentId": {
        "type": "string",
        "description": "ID of the comment to delete"
      }
    },
    "required": [
      "PCID",
      "fileId",
      "commentId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_create\_from\_template

Create a new Google Drive file (Docs, Sheets, Slides, etc.) from an existing template. Optionally apply text replacements for Google Docs files (e.g., \{\{NAME}} -> "John Doe").

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                                                |
| ---------------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
| `templateId`     | string | Yes      | —       | File ID of the template to copy                                                                                            |
| `newTitle`       | string | Yes      | —       | Title for the new file                                                                                                     |
| `replacements`   | object | No       | —       | Key-value pairs for text replacements (Google Docs only). Example: \{"\{\{NAME}}": "John Doe", "\{\{DATE}}": "2024-01-15"} |
| `parentFolderId` | string | No       | —       | Folder ID to create the file in (default: Drive root)                                                                      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "templateId": {
        "type": "string",
        "description": "File ID of the template to copy"
      },
      "newTitle": {
        "type": "string",
        "description": "Title for the new file"
      },
      "replacements": {
        "type": "object",
        "additionalProperties": true,
        "description": "Key-value pairs for text replacements (Google Docs only). Example: {\"{{NAME}}\": \"John Doe\", \"{{DATE}}\": \"2024-01-15\"}"
      },
      "parentFolderId": {
        "type": "string",
        "description": "Folder ID to create the file in (default: Drive root)"
      }
    },
    "required": [
      "PCID",
      "templateId",
      "newTitle"
    ]
  }
  ```
</Expandable>

***

## google-drive\_move\_to\_trash

Move a file to trash in Google Drive (soft delete)

**Parameters:**

| Parameter | Type   | Required | Default | Description                     |
| --------- | ------ | -------- | ------- | ------------------------------- |
| `fileId`  | string | Yes      | —       | ID of the file to move to trash |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to move to trash"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_update\_file

Update file metadata in Google Drive

**Parameters:**

| Parameter     | Type    | Required | Default | Description                        |
| ------------- | ------- | -------- | ------- | ---------------------------------- |
| `fileId`      | string  | Yes      | —       | ID of the file to update           |
| `name`        | string  | No       | —       | New name for the file              |
| `description` | string  | No       | —       | New description for the file       |
| `starred`     | boolean | No       | —       | Whether to star or unstar the file |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "fileId": {
        "type": "string",
        "description": "ID of the file to update"
      },
      "name": {
        "type": "string",
        "description": "New name for the file"
      },
      "description": {
        "type": "string",
        "description": "New description for the file"
      },
      "starred": {
        "type": "boolean",
        "description": "Whether to star or unstar the file"
      }
    },
    "required": [
      "PCID",
      "fileId"
    ]
  }
  ```
</Expandable>

***

## google-drive\_get\_current\_user

Get current user information and storage quota

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## google-drive\_upload\_csv\_as\_sheet

Upload a CSV file from a URL and convert it to a Google Sheet. The CSV content is automatically converted to Google Sheets format.

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------- |
| `csvUrl`    | string | Yes      | —       | URL of the CSV file to upload and convert     |
| `sheetName` | string | Yes      | —       | Name for the new Google Sheet                 |
| `folderId`  | string | No       | —       | Google Drive folder ID to upload the sheet to |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "csvUrl": {
        "type": "string",
        "description": "URL of the CSV file to upload and convert"
      },
      "sheetName": {
        "type": "string",
        "description": "Name for the new Google Sheet"
      },
      "folderId": {
        "type": "string",
        "description": "Google Drive folder ID to upload the sheet to"
      }
    },
    "required": [
      "PCID",
      "csvUrl",
      "sheetName"
    ]
  }
  ```
</Expandable>

***

## google-drive\_list\_trigger\_capabilities

List available trigger capabilities for Google Drive

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID (optional)"
      }
    }
  }
  ```
</Expandable>

***

## google-drive\_poll\_trigger

Poll Google Drive for new or removed items. Can monitor entire Drive or a specific file/folder URL.

**Parameters:**

| Parameter      | Type      | Required | Default                       | Description                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------- | --------- | -------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `eventTypes`   | string\[] | No       | `["new_item","item_removed"]` | Event types to monitor. "new\_item" for new files/folders added, "item\_removed" for files/folders deleted or trashed. Defaults to both if not specified.                                                                                                                                                                                                                                      |
| `url`          | string    | No       | —                             | Optional: Google Drive URL to monitor. If provided, monitors only that specific file or folder. If not provided, monitors entire Drive. Supports file URLs (e.g., [https://drive.google.com/file/d/FILE\_ID/view](https://drive.google.com/file/d/FILE_ID/view)) and folder URLs (e.g., [https://drive.google.com/drive/folders/FOLDER\_ID](https://drive.google.com/drive/folders/FOLDER_ID)) |
| `cursor`       | string    | No       | —                             | Cursor from previous poll for incremental sync                                                                                                                                                                                                                                                                                                                                                 |
| `minTimestamp` | number    | No       | —                             | Unix timestamp in seconds - never fetch items older than this                                                                                                                                                                                                                                                                                                                                  |
| `maxResults`   | number    | No       | `100`                         | Maximum number of changes to return                                                                                                                                                                                                                                                                                                                                                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID"
      },
      "eventTypes": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "new_item",
            "item_removed"
          ]
        },
        "default": [
          "new_item",
          "item_removed"
        ],
        "description": "Event types to monitor. \"new_item\" for new files/folders added, \"item_removed\" for files/folders deleted or trashed. Defaults to both if not specified."
      },
      "url": {
        "type": "string",
        "description": "Optional: Google Drive URL to monitor. If provided, monitors only that specific file or folder. If not provided, monitors entire Drive. Supports file URLs (e.g., https://drive.google.com/file/d/FILE_ID/view) and folder URLs (e.g., https://drive.google.com/drive/folders/FOLDER_ID)"
      },
      "cursor": {
        "type": "string",
        "description": "Cursor from previous poll for incremental sync"
      },
      "minTimestamp": {
        "type": "number",
        "description": "Unix timestamp in seconds - never fetch items older than this"
      },
      "maxResults": {
        "type": "number",
        "default": 100,
        "description": "Maximum number of changes to return"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>
