download
agentgraph download uses connector auth to fetch the source file for a graph entity, such as a Drive PDF, exported document, or Gmail attachment stub.
#Synopsis
agentgraph download ENTITY_ID [--output PATH] [--json]
#Use it for
- retrieving the current bytes behind a file-backed entity
- downloading Gmail attachments after they have been indexed as
Documentstubs - writing to a specific file path or directory
- returning download metadata as JSON
#Example
agentgraph download abc123ef --output ./downloads/
agentgraph download gdrive/19ccFHOXCcr4s62HJb3Eih3JqAd2xIZDq --json
agentgraph download 'gmail/document/attachment/<message-id>/<attachment-id>' --output .
For Gmail, run agentgraph fetch-entity <thread-id> and then agentgraph traverse <thread-id> --depth 1 --json to discover the attachment Document stubs referenced by the thread.