Retrieve Metadata
sf_retrieve_metadataRetrieve Salesforce metadata components and return their actual file contents to back up configuration, review existing setup, and verify what is truly deployed before making changes.
Instructions
Retrieves metadata components from the org and returns their actual file contents. Use this to read existing configuration before making changes, to back up metadata, or to check what is really deployed rather than what you think is deployed. Waits for the async retrieve to finish and unpacks the resulting zip, returning each file's path and source. Large files are truncated. Accepts 'components' (array), or 'metadataType'+'componentName' as a single-item shortcut, or a raw 'packageXml' document — provide exactly one form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | No | Metadata components to retrieve | |
| packageXml | No | Raw package.xml content for selective retrieve. If provided, components list is ignored. | |
| metadataType | No | Single metadata type (alternative to components array) | |
| componentName | No | Single component name (used with metadataType) |