Skip to main content
FuseFuse
IntegrationsGoogle workspaceActions

Get Google Drive file metadata

Get Drive file metadata the connected principal can access. Never returns file content.

Agent markdown

drive.files.get · Google Workspace · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • https://www.googleapis.com/auth/drive.metadata.readonly

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
file_idstringYesminLength 1; maxLength 256

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
idstringYesminLength 1; maxLength 256
namestringYesmaxLength 512
mime_typestringYesmaxLength 256
parentsarray<string>NomaxItems 20
parents[]stringYesmaxLength 256
drive_idstringNomaxLength 256
web_view_urlstringNomaxLength 2048
created_atstringNomaxLength 64
updated_atstringNomaxLength 64
trashedbooleanNo
revisionstringNomaxLength 64
size_bytesstringNomaxLength 32
client_side_encryptedbooleanYes

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "file_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    }
  },
  "required": [
    "file_id"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "name": {
      "type": "string",
      "maxLength": 512
    },
    "mime_type": {
      "type": "string",
      "maxLength": 256
    },
    "parents": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 256
      },
      "maxItems": 20
    },
    "drive_id": {
      "type": "string",
      "maxLength": 256
    },
    "web_view_url": {
      "type": "string",
      "maxLength": 2048
    },
    "created_at": {
      "type": "string",
      "maxLength": 64
    },
    "updated_at": {
      "type": "string",
      "maxLength": 64
    },
    "trashed": {
      "type": "boolean"
    },
    "revision": {
      "type": "string",
      "maxLength": 64
    },
    "size_bytes": {
      "type": "string",
      "maxLength": 32
    },
    "client_side_encrypted": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "name",
    "mime_type",
    "client_side_encrypted"
  ]
}