foundry_download_file
Retrieve a file from a FoundryVTT source, selecting binary or base64 format, with optional user-based permissions for access control.
Instructions
Download a file from a Foundry file source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file, relative to the selected source. | |
| format | No | Response representation; use base64 when the file content must be consumed as text. | |
| source | No | Foundry file source, such as data, systems, or modules. | |
| userId | No | Optional Foundry user ID or username for permission-scoped access. | |
| clientId | No | Foundry client ID; defaults to FOUNDRY_CLIENT_ID. |