Capability Sources

Read a Google Drive file's text or binary content as the calling member

Changed on

Reads a Drive file. Docs and Slides export as plain text; Sheets exports the first tab as CSV; PDFs up to 50 MB return their extracted text when that is enabled for the organization. For every spreadsheet tab or edits use the spreadsheet metadata and values capabilities. Downloaded content is bounded; binary files use standard base64 within the model-safety limit. To analyze or edit a whole file (Office, PDF, large CSV), pull it into the workspace with the drive_pull_file tool instead, or with createGoogleDriveDownloadLink from a shell.

get/v1/capabilities/google-workspace/drive-file/{fileId}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

fileId, string required

Google Drive file id.

Response

Google Drive file returned.

GoogleWorkspaceDriveFileResponse required
ok, true required
file, object required

Changes

    • warning

      added the new extraction_timed_out enum value to the file/contentUnavailableReason/anyOf[subschema #1] response property for the response status

    • warning

      added the new no_extractable_text enum value to the file/contentUnavailableReason/anyOf[subschema #1] response property for the response status

    • info

      added the optional property file/contentUnavailableHint to the response with the status