Skip to main content
Glama

PocketBase MCP Server

by fadlee
MIT License
0

upload_file

Upload a file to a specific record in PocketBase by providing the collection, record ID, file field name, file content, and file name.

Instructions

Upload a file to a record in PocketBase

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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fadlee/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server