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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "foundry_download_file"
}
}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. |