Retrieve Metadata
sf_retrieve_metadataRetrieve Salesforce metadata components and view their actual file contents. Use it to read existing configuration, back up metadata, or verify deployed 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.
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) |