download_file
Download a file from Salesforce using its ContentVersionId or ContentDocumentId. Binary files are saved to a workspace directory; text files return content inline.
Instructions
Download a file from Salesforce. Accepts a ContentVersionId (068...) or ContentDocumentId (069...). Saves to a sandboxed workspace directory (default: ~/.local/share/salesforce-cloud-mcp/workspace/, configurable via SF_WORKSPACE_DIR). Text files (CSV, JSON, XML, TXT, etc.) also return content inline. Binary files return the saved path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentId | Yes | ContentVersionId (068...) or ContentDocumentId (069...). Find these by querying ContentDocumentLink: SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<recordId>' |