Skip to contents

Download the raw content of a file.

Usage

claude_file_download(file_id, ...)

Arguments

file_id

Character. The file ID to download.

...

Additional arguments passed to ellmer::claude_file_download().

Value

Raw file content.

Details

Downloads the actual file content as raw bytes. Use claude_file_get() to retrieve only metadata without downloading content.

API Reference: https://platform.claude.com/docs/en/build-with-claude/files

Examples

if (FALSE) { # \dontrun{
file <- claude_file_upload("image.png")
content <- claude_file_download(file$id)
writeBin(content, "downloaded_image.png")
} # }