drive_search

Pack: google_drive · Endpoint: https://gateway.pipeworx.io/google_drive/mcp

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/drive_search for the schema, then POST the same URL with its arguments for the data.

Search Drive files by name, type, owner, modified date, or full text using query operators (e.g., ‘name contains “report”’, ‘mimeType = application/pdf’). Returns matching files and IDs.

Parameters

NameTypeRequiredDescription
querystringyesDrive search query (e.g., “fullText contains ‘quarterly report’” or “modifiedTime > ‘2024-01-01’“)
page_sizenumbernoMaximum number of results (default 10, max 100)

Example call

Arguments

{
  "query": "name contains 'quarterly report'"
}

curl

curl -X POST https://gateway.pipeworx.io/google_drive/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"drive_search","arguments":{"query":"name contains '\''quarterly report'\''"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('drive_search', {
  "query": "name contains 'quarterly report'"
});

More examples

{
  "query": "mimeType = 'application/pdf' and modifiedTime > '2024-01-01'",
  "page_size": 25
}

Response shape

FieldTypeDescription
nextPageTokenstringToken for fetching the next page of results
filesarrayList of files matching the search query
errorstringError code if connection failed
messagestringError message with instructions
Full JSON Schema
{
  "type": "object",
  "properties": {
    "nextPageToken": {
      "type": "string",
      "description": "Token for fetching the next page of results"
    },
    "files": {
      "type": "array",
      "description": "List of files matching the search query",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "File ID"
          },
          "name": {
            "type": "string",
            "description": "File name"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file"
          },
          "size": {
            "type": "string",
            "description": "File size in bytes"
          },
          "createdTime": {
            "type": "string",
            "description": "ISO 8601 creation timestamp"
          },
          "modifiedTime": {
            "type": "string",
            "description": "ISO 8601 last modified timestamp"
          },
          "owners": {
            "type": "array",
            "description": "List of file owners",
            "items": {
              "type": "object",
              "properties": {
                "displayName": {
                  "type": "string",
                  "description": "Owner display name"
                },
                "emailAddress": {
                  "type": "string",
                  "description": "Owner email address"
                }
              }
            }
          },
          "webViewLink": {
            "type": "string",
            "description": "URL to open file in Google Drive web interface"
          }
        }
      }
    },
    "error": {
      "type": "string",
      "description": "Error code if connection failed"
    },
    "message": {
      "type": "string",
      "description": "Error message with instructions"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "google_drive": {
      "url": "https://gateway.pipeworx.io/google_drive/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 22, 2026