pipeshub_download_record
Retrieve and stream the binary content of a specific record from PipesHub using its ID, optionally converting to a requested format.
Instructions
Stream the binary content of a single record from PipesHub.
Typical sources for the recordId:
A chat citation:
pipeshub_chatresponse →citations[*].recordId.A search result:
pipeshub_searchresponse →hits[*].recordId/uniqueRecords[*].recordId.
Response Content-Type is forwarded from the upstream service —
application/pdf, application/octet-stream, etc. Binary content is
returned base64-encoded; text content is returned inline.
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 | Optional server-side format conversion target (e.g. `pdf`). When omitted, the original file bytes are returned. |