read_mcdev_artifact_source
Reads full editable source and SHA-256 for one qualified query, script, or resolved email identity, returning original UTF-8 text without accepting file paths.
Instructions
Read-only full-text editable-source handoff for one qualified query, script or bounded asset-email identity (htmlemail/templatebasedemail matched by customerKey with exact HTML/preheader/text extracts), never a caller-supplied file path. Requires exactly one editable companion unless an explicit sourceRole selects html, preheader or text from resolved email companions; multiple companions need an explicit role or are blocked with no source and no guessed choice. sourceRole accepts no arbitrary filenames or paths and applies only to resolved email companions. Dependencies are not confirmed. Returns complete original UTF-8 text (including BOM) and SHA-256 of original file bytes without truncation; unresolved or blocked results never contain source. No rendering, validation, mutation, native modules or live execution is performed; execution readiness is unknown. The host must discover companion capabilities and coordinate platform detection, identifier lookup and full-document validate_ssjs, validate_sfmc_html or validate_ampscript as appropriate. Email html requires validate_sfmc_html; preheader/text have language text and text-validator-not-established, not an inferred AMPscript validator. SQL validation is not established. Do not claim companion tools were performed. Prevent concurrent filesystem mutation: bounded checks are not atomic or a concurrent-mutation sandbox. Never reads auth contents or logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | ||
| rootKind | Yes | ||
| credential | Yes | ||
| maxEntries | No | ||
| sourceRole | No | ||
| externalKey | Yes | ||
| businessUnit | Yes | ||
| metadataType | Yes | query, script or asset-email (bounded htmlemail/templatebasedemail layouts only). | |
| workspaceRoot | Yes | Canonical absolute mcdev project root. |