https://api.zerodrive.dev/mcp.
File Version History
| Tool | Inputs | What it does |
|---|---|---|
list_file_versions | path, drive_id, limit, offset | Lists saved revisions (30d Pro, 90d Pro Max/Agency). |
get_file_version | path, version, drive_id | Reads text and details from a past version. |
diff_file_versions | path, from_revision, to_revision | Line diff between two revisions. |
restore_file_version | path, version, drive_id | Restores an old revision after saving a backup. |
Workspaces and separate drives
| Tool | Inputs | What it does |
|---|---|---|
list_workspaces | None | Lists workspaces. |
list_drives | None | Lists main and extra drives. |
get_drive | drive_id | Gets details for one drive. |
get_drive_usage | drive_id | Live, Trash, version, and quota bytes. |
create_drive | name, description, quota_gb | Creates an extra drive. |
rename_drive | drive_id, name, expected_version | Renames an extra drive. |
delete_drive | drive_id | Moves extra drive to 30-day Trash. |
list_deleted_drives | None | Lists deleted drives inside 30 days. |
get_drive_deletion | deletion_id_or_drive_id | Checks a soft-deleted drive. |
restore_drive | drive_id | Restores a deleted drive. |
Draft branches and locked restore points
| Tool | Inputs | What it does |
|---|---|---|
create_branch | name, drive_id, from_branch | Creates a draft branch. |
list_branches | drive_id, include_merged | Lists branches. |
get_branch_log | branch, drive_id, limit | Commit log on a branch. |
branch_list_files | branch, drive_id, prefix | Lists branch files. |
branch_read_file | branch, path, drive_id | Reads from branch or falls back to main. |
branch_write_file | branch, path, content / content_base64, drive_id | Edits inside a branch safely. |
branch_delete_file | branch, path, drive_id | Marks a file deleted inside a branch. |
diff_branch | branch, drive_id | Compares branch against main. |
merge_branch | branch, drive_id, conflict_strategy, dry_run | Merges branch cleanly into main. |
delete_branch | branch, drive_id | Deletes a branch and its drafts. |
create_drive_snapshot | drive_id, label, retention_days | Saves a zero-quota restore point. |
list_drive_snapshots | drive_id, limit | Lists saved restore points. |
restore_drive_snapshot | snapshot_id, paths, create_safety_snapshot | Restores files after saving a safety snapshot. |
Targeted structured edits
| Tool | Inputs | What it does |
|---|---|---|
patch_structured_file | path, operations, expected_revision | Patches JSON, JSONL, CSV, Markdown, or YAML. |
append_jsonl | path, records, dedupe_key | Appends valid JSON lines safely. |
query_structured_file | path, where, select, limit | Queries CSV rows or structured fields. |
merge_file | path, base, incoming | 3-way merge for structured files. |
Restricted keys, file locks, and handoffs
| Tool | Inputs | What it does |
|---|---|---|
create_sandbox_token | drive_id, root_folder, access_mode, ttl_seconds, label | Mints a temporary restricted zdx_ key. |
batch_create_sandbox_tokens | sandboxes (up to 100) | Mints up to 100 zdx_ keys for worker teams. |
list_sandbox_tokens | state | Lists sandbox keys without secrets. |
extend_sandbox_token | sandbox_id, ttl_seconds | Extends an active key’s timer. |
revoke_sandbox_token | sandbox_id | Cancels a key immediately. |
acquire_lease | path, drive_id, branch_name, holder_id, ttl_seconds | Locks a file path temporarily. |
renew_lease | lease_id, holder_id, ttl_seconds | Extends a file lock. |
release_lease | lease_id, holder_id | Unlocks a file path. |
list_leases | drive_id, branch_name | Lists active file locks. |
create_handoff | title, instructions, paths, to_agent, context | Creates a task packet for another agent. |
list_handoffs | status, to_agent, drive_id, limit | Lists open or finished handoffs. |
claim_handoff | handoff_id, agent_id | Claims once (409 if already claimed). |
complete_handoff | handoff_id, agent_id, result_summary | Marks a handoff complete. |
Cold archive, connectors, accounts, and support
| Tool | Inputs | What it does |
|---|---|---|
archive_to_cold / restore_from_cold | path, drive_id | Moves files to or from cold storage. |
list_cold_archives / set_archive_policy | drive_id, prefix, min_age_days | Views cold usage or sets auto-archive age rules. |
create_connector / list_connectors / delete_connector | name, type, mount_path, endpoint_url | Connects PostgREST, HTTP SQL, JSON, or CSV feeds. |
sync_connector / query_connector | connector_id, table, sql, filters, limit | Saves CSV snapshots or runs read-only queries. |
list_accounts | None | Lists main and linked accounts. |
list_roadmap / vote_roadmap | status, item_id | Views roadmap items and votes. |
list_my_tickets / get_ticket / submit_feedback | ticket_id, kind, title, message | Sends tickets and checks replies. |

