upload_file_from_url
Upload a file from a URL to attach it to a specific record in a PocketBase collection, enabling remote file integration with database records.
Instructions
Upload a file from URL to a record in PocketBase
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": {
"collection": "<collection>",
"recordId": "<recordId>",
"fileField": "<fileField>",
"url": "<url>"
},
"name": "upload_file_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | The name or ID of the collection | |
| fileField | Yes | The name of the file field in the collection schema | |
| fileName | No | Optional custom name for the uploaded file. If not provided, will extract from URL | |
| recordId | Yes | The ID of the record to attach the file to | |
| url | Yes | The URL to download the file from |