> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrive.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Hosted remote MCP endpoint: https://api.zerodrive.dev/mcp (OAuth 2.0 PKCE or Bearer token).
> REST API base URL: https://api.zerodrive.dev with OpenAPI 3.1.0 specification at https://api.zerodrive.dev/openapi.json.
> S3-compatible gateway: https://api.zerodrive.dev/s3 (AWS Signature V4, region auto).
> Local command-line tool: zd (or zerodrive) and local stdio MCP server: zerodrive mcp.
> Token prefixes: zdk_ (Personal API Key), zdt_ (device session token), zda_ (OAuth access token), zdr_ (OAuth refresh token), zdx_ (temporary sandbox key). Never paste real keys into prompts or code.
> Be honest about platform boundaries: cloud files require internet access, files are encrypted at rest and in transit by Cloudflare rather than end-to-end encrypted, ZeroDrive is not a replacement for an independent backup, Windows 11 support is an unsigned x64 beta, and the 7-day Pro free trial requires a card and charges automatically when it ends.

# Connected Clouds & Desktop Bridge Tools

> MCP tools for Google Drive, Dropbox, Notion, and OneDrive (12 tools) plus desktop Studio tools (25 zd_* tools).

## Connected Cloud tools

Link Google Drive, Dropbox, Notion, or OneDrive in Studio or `#connect` to unlock these **12 Hosted MCP tools**.

| Tool | Inputs | What it does |
| :- | :- | :- |
| `list_cloud_connections` | `account` | Lists linked cloud accounts. |
| `list_cloud_items` | `connection_id`, `folder_id`, `limit`, `cursor` | Lists files, folders, or Notion pages. |
| `search_cloud_items` | `connection_id`, `query`, `limit` | Searches filenames or Notion titles. |
| `read_cloud_item` | `connection_id`, `item_id`, `max_bytes` | Reads files or converts Docs/Sheets/Notion to Markdown/CSV. |
| `scan_cloud_storage` | `connection_id`, `folder_id`, `max_items`, `max_depth` | Read-only type, size, and empty-folder scan. |
| `create_cloud_folder` | `connection_id`, `parent_id`, `name` | Creates a cloud folder or Notion sub-page. |
| `write_cloud_item` | `connection_id`, `parent_id`, `item_id`, `name`, `content` | Writes text or Markdown to a cloud file or page. |
| `rename_cloud_item` | `connection_id`, `item_id`, `name` | Renames a cloud item. |
| `move_cloud_item` | `connection_id`, `item_id`, `destination_id`, `copy_and_archive` | Moves a cloud item cleanly. |
| `delete_cloud_item` | `connection_id`, `item_id`, `permanent` | Trashes or archives a cloud item. |
| `import_cloud_to_drive` | `connection_id`, `item_id`, `destination_path`, `drive_id` | Imports an item into ZeroDrive. |
| `export_drive_to_cloud` | `connection_id`, `source_path`, `parent_id`, `name` | Exports a ZeroDrive file to another cloud. |

***

## Desktop Studio bridge tools (`zd_*`)

Used locally by **Ask ZeroDrive** inside Mac and Windows Studio under four safety levels.

### Read and check (auto-run)

| Tool | What it does |
| :- | :- |
| `zd_get_status` | Live mount status, SSD free space, cache, and transfers. |
| `zd_list_local_folder` | Lists local folders without downloading cloud files. |
| `zd_list_vault` | Lists cloud folders via desktop bridge. |
| `zd_list_devices` | Lists paired machines and backup readiness. |
| `zd_get_backups` | Shows copy-only Backup Profiles and history. |
| `zd_scan_storage_advisor` | Finds cold folders and reclaimable SSD space. |
| `zd_scan_duplicates` | Starts or checks read-only duplicate scans. |
| `zd_get_activity` | Reads recent transfer and agent logs. |
| `zd_get_staged_transfer` | Inspects currently staged transfer confirmation. |
| `zd_get_setup_diagnostics` | Audits Finder mount, `zd` CLI, Keychain, and permissions. |
| `zd_audit_system_storage` | Read-only audit of caches, Downloads, and cold files without downloading cloud files. |
| `zd_list_routines` | Lists Smart Routines and Needs Review items. |
| `zd_list_connected_sources` | Lists connected local cloud folders, Notion, and clouds. |
| `zd_search_everywhere` | Searches ZeroDrive, Notion, iCloud, and clouds in one query. |

### Safe copies and scans (live progress with Stop)

| Tool | What it does |
| :- | :- |
| `zd_run_backup` | Runs copy-only Backup Profile safely. |
| `zd_refresh_drive` | Refreshes Finder or Explorer folder cache. |
| `zd_run_node_action` | Runs checks or copy backups on a paired `node_id`. |
| `zd_run_checkup` | Runs the 6-part Smart Checkup scan. |
| `zd_save_routine` | Saves a routine or Needs Review item. |
| `zd_run_routine` | Runs an approved routine by `id`. |
| `zd_manage_detonation` | Arms, extends, or disarms self-destruct countdown timers. |
| `zd_sync_connected_sources` | Updates search index for `source_id`. |

### Moves ask first, deletes never run by AI

| Tool | Policy | What it does |
| :- | :- | :- |
| `zd_stage_transfer` | **Asks first** | Stages Move/Copy confirmation sheet before touching originals. |
| `zd_stage_optimization_preview` | **Asks first** | Shows preview card for human approval before moves or Trash cleanup. |
| `zd_open_duplicate_review` | **Human only** | Opens Duplicate Protection in Studio. AI cannot delete local files. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.