Capability Sources

Create a five-minute download link for one Google Drive file, for clients with a shell

Changed on

For clients without OpenWork host file transport but with a shell, such as a Workbot computer or a coding agent. Download with curl into a file instead of reading the file into context; Docs, Sheets and Slides export to Office formats by default. To save edits back, prepare createGoogleDriveUploadSession with fileId and this revision as baseRevision. Uses the selected connection.

post/v1/capabilities/google-workspace/drive-download-links

Request

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

Request body

object required
fileId, string required
format, string

Google Docs, Sheets, Slides and Drawings only: export format, such as xlsx or csv for a Sheet, docx, md, txt or pdf for a Doc, pptx for Slides. Defaults to the Office format.

Response

Short-lived bearer download URL, as JSON and as an MCP resource link, with the file's revision; no file content.

GoogleDriveDownloadLink required
ok, true required
file, object required
download, object required
downloadUrl, string uri required

Secret bearer URL for this one file, valid for five minutes. Do not print, share, log or persist it.

expiresAt, string date-time required
resourceLink, object required

The same download as an MCP resource link.

instructions, string required

Changes

    • breaking

      the response property download/extension became nullable for the status

    • breaking

      the response property download/format became nullable for the status

    • breaking

      the response property file/md5Checksum became nullable for the status

    11 more changes in this revision