hdls Drive

hdls Drive is a headless, MCP-native file storage & sharing backend. It manages folders, files, shares, and versions, operated entirely through named tools your AI assistant calls. It stands in for tools like Dropbox, OneDrive, Google Drive — same job, no UI to run.

💬 Just ask

"Create a folder for Acme, then show me my files."

You don't call these tools yourself — just tell your assistant in plain English. Everything below is the reference for when you (or your assistant) want the exact details.

How Drive is organized

The headline entity is the file — start there, then attach the rest to it. Records connect by reference: a share links to a file and a folder. The file_version table is an append-only timeline — every change and note lands there and is never edited or deleted.

EntityPurposeRelates to
fileFile metadata; bytes live in object storage at storage_key.folder
folderFolder hierarchy (OneDrive-style).
shareShares a file or folder with a tenant/user/agent/public, optionally via link token.file, folder
file_versionAppend-only version history per file.file

Common workflows

Each line is one real sequence of tool calls — your assistant chains them for you.

  • Set up a file end to end: create_folderupload_file
  • Move a file through its lifecycle: create_foldermove_file

Tools

Call these at https://hdls.ai/api/mcp/drive. Required fields you must supply; optional fields refine the call. You never pass tenant_id — it is stamped server-side.

Create

ToolWhat it doesRequiredOptional
create_folderCreate a new folder.nameparent_id, path, data

Update & advance

ToolWhat it doesRequiredOptional
upload_fileUpload a file.namefolder_id, mime_type, size_bytes, storage_key, checksum, created_by
share_fileShare a file.id
move_fileMove a file.id

Find & read

ToolWhat it doesRequiredOptional
search_filesSearch files by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy
list_file_versionsSearch file versions by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy

Field lists come from the product's live schema and are embedded in each tool's own description — read the tool description for the exact, current fields.

Field reference

Every field you can set on each record. Custom fields you add live alongside these in data.

file

FieldTypeRequiredNotes
folder_ididLinks to a folder.
nametextYesDisplay name.
mime_typetext
size_bytesnumber
storage_keytext
checksumtext
datajsonFree-form JSON — custom fields live here.
created_bytext

folder

FieldTypeRequiredNotes
parent_ididReference to a related record.
nametextYesDisplay name.
pathtext
datajsonFree-form JSON — custom fields live here.

share

FieldTypeRequiredNotes
file_ididLinks to a file.
folder_ididLinks to a folder.
audiencetextYes
audience_idtextReference to a related record.
scopetext
link_tokentext
expires_attimestamp

Tailor it with custom fields

Add fields without a schema change. add_custom_field defines one, list_custom_fields shows what's defined, and promote_custom_field (admin) shares a personal field with the whole workspace. The value lives in each row's data (JSON) and is set and read through the normal record tools. See Products, tools & custom fields for the full model.

Roles & safety

  • Tenant isolation is automatic. Your credential is pinned to one workspace; you never pass tenant_id, and you can only ever see your own data (enforced by Postgres row-level security).
  • Role-gated. Permissions run reader < member < admin < owner. Installing a product and promoting a custom field workspace-wide need admin/owner.
  • History is append-only. The file_version timeline is never edited or deleted — it's your audit trail.

Connect

On the concierge (https://hdls.ai/api/mcp), run install_product({ slug: "drive" }) (admin/owner) to enable it for your workspace, then add https://hdls.ai/api/mcp/drive as a connector in your assistant — see Connect your assistant.

A worked example

The literal call your assistant makes when you ask it to create the headline record:

Tool: create_folder
Arguments: {
  "name": "Acme Corp"
}

See All products · Connect your assistant · Automation