upload-asset
Upload asset files (maps, tokens, audio, handouts) to Foundry VTT via WebDAV and get back the public HTTPS URL. Avoids bridge for large media, auto-creates missing folders.
Instructions
Plane B (file channel, write). Upload an ASSET (map/token/audio/handout image) from a local file to the Foundry data area over WebDAV and return its public HTTPS URL, so large media bypass the bridge entirely. Missing parent folders are created automatically. ASSETS ONLY — never world-DB files (LevelDB writes while the server runs corrupt it; such paths are refused). PRIVACY: anything under Data/ is served publicly with no auth — do not upload anything sensitive. Requires MOLTEN_WEBDAV_PASSWORD.
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": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "upload-asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute path to the local file to upload. | |
| overwrite | No | Allow overwriting an existing file at remotePath. | |
| remotePath | Yes | Destination path RELATIVE TO the Foundry `Data/` root, e.g. "worlds/your-world/assets/maps/cavern.webp". Must be an asset location, never inside a world's `data/` (LevelDB) directory. |