pipeshub_download_record
Download the original file stored for a record to open, attach, or save it. Provide the recordId from a chat citation or search result.
Instructions
Download the file as stored for one record — not PipesHub's parsed content, metadata header, or summary.
Use this when the user wants the file itself (download, attach, open).
Get recordId from a chat citation or a pipeshub_search hit.
Do not use this to read, summarize, or answer "what does this doc
say?" regardless of format. That is pipeshub_get_record_content
mode:"content". Text formats come back inline; images, audio, and
binary as base64.
convertTo accepts only application/pdf; anything else is ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recordId | Yes | Record identifier — usually a UUID for connector-sourced records or a 24-character ObjectId for uploaded records. Get it from a chat citation (`citations[*].recordId`) or from a `pipeshub_search` hit. | |
| convertTo | No | The only conversion target connectors honour is `application/pdf` (the MIME type, not `pdf`). A bare `pdf` is ignored and the original file is returned with no error. Omit for the file as stored. Does not parse the document — use `pipeshub_get_record_content` `mode:"content"` for that. |