comfy_get_artifact
Retrieve a ComfyUI output artifact's metadata by relative path, with optional base64 data and SHA256 hash, while blocking path traversal and symlink escapes.
Instructions
Get safe metadata (and optionally base64 bytes) for one output file.
relative_path is always resolved beneath the connected local
instance's argv-derived output directory. Absolute paths, .. and
symlink escapes are rejected. Inline bytes are opt-in and capped at 25 MiB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_data | No | ||
| relative_path | Yes | ||
| include_sha256 | No | ||
| max_inline_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |