Get Item
AI-generatedSummary
Retrieve metadata for a file in a shared Google Drive folder; optionally download its content as binary data.
Inputs
- fileId (required) — The ID of the file to work with
- downloadContent — Whether to download the file content as binary data
Output shape
array
Each input item produces one output item with pairedItem index matching the input index. When downloadContent is false, the output contains only JSON metadata. When downloadContent is true, the output includes the same JSON metadata plus a binary property named 'data' holding the file's raw bytes.
Examples
Example 1: Get only metadata
fileId set; downloadContent false (default). Returns JSON with id, name, mimeType, size, modifiedTime, createdTime, parents, webViewLink.
Example 2: Get metadata and download content
fileId set; downloadContent true. Returns JSON with name and mimeType plus binary data under binary.data.