PocketBase MCP Server

by mabeldata
Verified

upload_file

Upload file content as a string to a specified field in a PocketBase collection record using the required collection, record ID, field name, file name, and content string.

Instructions

Upload a file (provided as content string) to a PocketBase collection record field.

Input Schema

NameRequiredDescriptionDefault
collectionYesThe name or ID of the collection.
fileContentYesThe raw content of the file as a string.
fileFieldYesThe name of the file field in the collection schema.
fileNameYesThe desired name for the uploaded file (e.g., "report.txt").
recordIdYesThe ID of the record to attach the file to.

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "The name or ID of the collection.", "type": "string" }, "fileContent": { "description": "The raw content of the file as a string.", "type": "string" }, "fileField": { "description": "The name of the file field in the collection schema.", "type": "string" }, "fileName": { "description": "The desired name for the uploaded file (e.g., \"report.txt\").", "type": "string" }, "recordId": { "description": "The ID of the record to attach the file to.", "type": "string" } }, "required": [ "collection", "recordId", "fileField", "fileContent", "fileName" ], "type": "object" }
ID: llc3xla20m