Download file
download_fileDownload a stored file from a PocketBase record to a local path on the server machine. Automatically handles protected files by requesting an access token.
Instructions
Download a record file to a local path on the machine running this MCP server. Handles protected files automatically by requesting an access token.
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>",
"filename": "<filename>",
"destPath": "<destPath>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thumb | No | Optional thumbnail size for images. | |
| destPath | Yes | Local filesystem path to write the downloaded file to. | |
| filename | Yes | Stored file name. | |
| recordId | Yes | Record id. | |
| protected | No | Set true for protected files (embeds a token). | |
| collection | Yes | Collection id or name. |