Upload a file from a URL
upload_file_from_urlDownload a file from a public URL directly into a hosted Minecraft server folder, such as a plugin jar into plugins/. Use for binary files that text writing cannot create.
Instructions
Has the server download a file from a public URL into a folder, such as a plugin jar (LuckPerms, ViaVersion, EaglercraftXServer) into plugins/. Use this for binary files, which write_file cannot create. Returns once the download finishes; plugins load on the next restart.
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": {
"url": "<url>"
},
"name": "upload_file_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Direct download URL of the file. | |
| server | No | Server identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set. | |
| filename | No | File name to save as. Defaults to the name the download provides. | |
| directory | No | Destination folder, relative to the server root, such as "plugins". Defaults to "/". | / |