Automate Dropbox file management, sharing, search, uploads, downloads, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.
Add this skill
npx mdskills install sickn33/dropbox-automationComprehensive Dropbox automation via Rube MCP with detailed workflows, edge cases, and pagination handling.
1---2name: dropbox-automation3description: "Automate Dropbox file management, sharing, search, uploads, downloads, and folder operations via Rube MCP (Composio). Always search tools first for current schemas."4requires:5 mcp: [rube]6---78# Dropbox Automation via Rube MCP910Automate Dropbox operations including file upload/download, search, folder management, sharing links, batch operations, and metadata retrieval through Composio's Dropbox toolkit.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active Dropbox connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `dropbox`16- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1718## Setup1920**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2122231. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds242. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `dropbox`253. If connection is not ACTIVE, follow the returned auth link to complete Dropbox OAuth264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Search for Files and Folders3132**When to use**: User wants to find files or folders by name, content, or type3334**Tool sequence**:351. `DROPBOX_SEARCH_FILE_OR_FOLDER` - Search by query string with optional path scope and filters [Required]362. `DROPBOX_SEARCH_CONTINUE` - Paginate through additional results using cursor [Required if has_more]373. `DROPBOX_GET_METADATA` - Validate and get canonical path for a search result [Optional]384. `DROPBOX_READ_FILE` - Read file content to verify it is the intended document [Optional]3940**Key parameters**:41- `query`: Search string (case-insensitive, 1+ non-whitespace characters)42- `options.path`: Scope search to a folder (e.g., `"/Documents"`); empty string for root43- `options.file_categories`: Filter by type (`"image"`, `"document"`, `"pdf"`, `"folder"`, etc.)44- `options.file_extensions`: Filter by extension (e.g., `["jpg", "png"]`)45- `options.filename_only`: Set `true` to match filenames only (not content)46- `options.max_results`: Results per page (default 100, max 1000)4748**Pitfalls**:49- Search returns `has_more: true` with a `cursor` when more results exist; MUST continue to avoid silently missing matches50- Maximum 10,000 matches total across all pages of search + search_continue51- `DROPBOX_GET_METADATA` returned `path_display` may differ in casing from user input; always use the returned canonical path52- File content from `DROPBOX_READ_FILE` may be returned as base64-encoded `file_content_bytes`; decode before parsing5354### 2. Upload and Download Files5556**When to use**: User wants to upload files to Dropbox or download files from it5758**Tool sequence**:591. `DROPBOX_UPLOAD_FILE` - Upload a file to a specified path [Required for upload]602. `DROPBOX_READ_FILE` - Download/read a file from Dropbox [Required for download]613. `DROPBOX_DOWNLOAD_ZIP` - Download an entire folder as a zip file [Optional]624. `DROPBOX_SAVE_URL` - Save a file from a public URL directly to Dropbox [Optional]635. `DROPBOX_GET_SHARED_LINK_FILE` - Download a file from a shared link URL [Optional]646. `DROPBOX_EXPORT_FILE` - Export non-downloadable files like Dropbox Paper to markdown/HTML [Optional]6566**Key parameters**:67- `path`: Dropbox path (must start with `/`, e.g., `"/Documents/report.pdf"`)68- `mode`: `"add"` (default, fail on conflict) or `"overwrite"` for uploads69- `autorename`: `true` to auto-rename on conflict instead of failing70- `content`: FileUploadable object with `s3key`, `mimetype`, and `name` for uploads71- `url`: Public URL for `DROPBOX_SAVE_URL`72- `export_format`: `"markdown"`, `"html"`, or `"plain_text"` for Paper docs7374**Pitfalls**:75- `DROPBOX_SAVE_URL` is asynchronous and may take up to 15 minutes for large files76- `DROPBOX_DOWNLOAD_ZIP` folder must be under 20 GB with no single file over 4 GB and fewer than 10,000 entries77- `DROPBOX_READ_FILE` content may be base64-encoded; check response format78- Shared link downloads via `DROPBOX_GET_SHARED_LINK_FILE` may require `link_password` for protected links7980### 3. Share Files and Manage Links8182**When to use**: User wants to create sharing links or manage existing shared links8384**Tool sequence**:851. `DROPBOX_GET_METADATA` - Confirm file/folder exists and get canonical path [Prerequisite]862. `DROPBOX_LIST_SHARED_LINKS` - Check for existing shared links to avoid duplicates [Prerequisite]873. `DROPBOX_CREATE_SHARED_LINK` - Create a new shared link [Required]884. `DROPBOX_GET_SHARED_LINK_METADATA` - Resolve a shared link URL to metadata [Optional]895. `DROPBOX_LIST_SHARED_FOLDERS` - List all shared folders the user has access to [Optional]9091**Key parameters**:92- `path`: File or folder path for link creation93- `settings.audience`: `"public"`, `"team"`, or `"no_one"`94- `settings.access`: `"viewer"` or `"editor"`95- `settings.expires`: ISO 8601 expiration date (e.g., `"2026-12-31T23:59:59Z"`)96- `settings.require_password` / `settings.link_password`: Password protection97- `settings.allow_download`: Boolean for download permission98- `direct_only`: For `LIST_SHARED_LINKS`, set `true` to only return direct links (not parent folder links)99100**Pitfalls**:101- `DROPBOX_CREATE_SHARED_LINK` fails with 409 Conflict if a shared link already exists for the path; check with `DROPBOX_LIST_SHARED_LINKS` first102- Always validate path with `DROPBOX_GET_METADATA` before creating links to avoid `path/not_found` errors103- Reuse existing links from `DROPBOX_LIST_SHARED_LINKS` instead of creating duplicates104- `requested_visibility` is deprecated; use `audience` for newer implementations105106### 4. Manage Folders (Create, Move, Delete)107108**When to use**: User wants to create, move, rename, or delete files and folders109110**Tool sequence**:1111. `DROPBOX_CREATE_FOLDER` - Create a single folder [Required for create]1122. `DROPBOX_CREATE_FOLDER_BATCH` - Create multiple folders at once [Optional]1133. `DROPBOX_MOVE_FILE_OR_FOLDER` - Move or rename a single file/folder [Required for move]1144. `DROPBOX_MOVE_BATCH` - Move multiple items at once [Optional]1155. `DROPBOX_DELETE_FILE_OR_FOLDER` - Delete a single file or folder [Required for delete]1166. `DROPBOX_DELETE_BATCH` - Delete multiple items at once [Optional]1177. `DROPBOX_COPY_FILE_OR_FOLDER` - Copy a file or folder to a new location [Optional]1188. `DROPBOX_CHECK_MOVE_BATCH` / `DROPBOX_CHECK_FOLDER_BATCH` - Poll async batch job status [Required for batch ops]119120**Key parameters**:121- `path`: Target path (must start with `/`, case-sensitive)122- `from_path` / `to_path`: Source and destination for move/copy operations123- `autorename`: `true` to auto-rename on conflict124- `entries`: Array of `{from_path, to_path}` for batch moves; array of paths for batch creates125- `allow_shared_folder`: Set `true` to allow moving shared folders126- `allow_ownership_transfer`: Set `true` if move changes ownership127128**Pitfalls**:129- All paths are case-sensitive and must start with `/`130- Paths must NOT end with `/` or whitespace131- Batch operations may be asynchronous; poll with `DROPBOX_CHECK_MOVE_BATCH` or `DROPBOX_CHECK_FOLDER_BATCH`132- `DROPBOX_FILES_MOVE_BATCH` (v1) has "all or nothing" behavior - if any entry fails, entire batch fails133- `DROPBOX_MOVE_BATCH` (v2) is preferred over `DROPBOX_FILES_MOVE_BATCH` (v1)134- Maximum 1000 entries per batch delete/move; 10,000 paths per batch folder create135- Case-only renaming is not supported in batch move operations136137### 5. List Folder Contents138139**When to use**: User wants to browse or enumerate files in a Dropbox folder140141**Tool sequence**:1421. `DROPBOX_LIST_FILES_IN_FOLDER` - List contents of a folder [Required]1432. `DROPBOX_LIST_FOLDERS` - Alternative folder listing with deleted entries support [Optional]1443. `DROPBOX_GET_METADATA` - Get details for a specific item [Optional]145146**Key parameters**:147- `path`: Folder path (empty string `""` for root)148- `recursive`: `true` to list all nested contents149- `limit`: Max results per request (default/max 2000)150- `include_deleted`: `true` to include deleted but recoverable items151- `include_media_info`: `true` to get photo/video metadata152153**Pitfalls**:154- Use empty string `""` for root folder, not `"/"`155- Recursive listings can be very large; use `limit` to control page size156- Results may paginate via cursor even with small limits157- `DROPBOX_LIST_FILES_IN_FOLDER` returns 409 Conflict with `path/not_found` for incorrect paths158159## Common Patterns160161### ID Resolution162- **Path-based**: Most Dropbox tools use path strings (e.g., `"/Documents/file.pdf"`)163- **ID-based**: Some tools accept `id:...` format (e.g., `"id:4g0reWVRsAAAAAAAAAAAQ"`)164- **Canonical path**: Always use `path_display` or `path_lower` from `DROPBOX_GET_METADATA` responses for subsequent calls165- **Shared link URL**: Use `DROPBOX_GET_SHARED_LINK_METADATA` to resolve URLs to paths/IDs166167### Pagination168Dropbox uses cursor-based pagination across most endpoints:169- Search: Follow `has_more` + `cursor` with `DROPBOX_SEARCH_CONTINUE` (max 10,000 total matches)170- Folder listing: Follow cursor from response until no more pages171- Shared links: Follow `has_more` + `cursor` in `DROPBOX_LIST_SHARED_LINKS`172- Batch job status: Poll with `DROPBOX_CHECK_MOVE_BATCH` / `DROPBOX_CHECK_FOLDER_BATCH`173174### Async Operations175Several Dropbox operations run asynchronously:176- `DROPBOX_SAVE_URL` - returns job ID; poll or set `wait: true` (up to 120s default)177- `DROPBOX_MOVE_BATCH` / `DROPBOX_FILES_MOVE_BATCH` - may return job ID178- `DROPBOX_CREATE_FOLDER_BATCH` - may return job ID179- `DROPBOX_DELETE_BATCH` - returns job ID180181## Known Pitfalls182183### Path Formats184- All paths must start with `/` (except empty string for root in some endpoints)185- Paths must NOT end with `/` or contain trailing whitespace186- Paths are case-sensitive for write operations187- `path_display` from API may differ in casing from user input; always prefer API-returned paths188189### Rate Limits190- Dropbox API has per-endpoint rate limits; batch operations help reduce call count191- Search is limited to 10,000 total matches across all pagination192- `DROPBOX_SAVE_URL` has a 15-minute timeout for large files193194### File Content195- `DROPBOX_READ_FILE` may return content as base64-encoded `file_content_bytes`196- Non-downloadable files (Dropbox Paper, Google Docs) require `DROPBOX_EXPORT_FILE` instead197- Download URLs from shared links require proper authentication headers198199### Sharing200- Creating a shared link when one already exists returns a 409 Conflict error201- Always check `DROPBOX_LIST_SHARED_LINKS` before creating new links202- Shared folder access may not appear in standard path listings; use `DROPBOX_LIST_SHARED_FOLDERS`203204## Quick Reference205206| Task | Tool Slug | Key Params |207|------|-----------|------------|208| Search files | `DROPBOX_SEARCH_FILE_OR_FOLDER` | `query`, `options.path` |209| Continue search | `DROPBOX_SEARCH_CONTINUE` | `cursor` |210| List folder | `DROPBOX_LIST_FILES_IN_FOLDER` | `path`, `recursive`, `limit` |211| List folders | `DROPBOX_LIST_FOLDERS` | `path`, `recursive` |212| Get metadata | `DROPBOX_GET_METADATA` | `path` |213| Read/download file | `DROPBOX_READ_FILE` | `path` |214| Upload file | `DROPBOX_UPLOAD_FILE` | `path`, `content`, `mode` |215| Save URL to Dropbox | `DROPBOX_SAVE_URL` | `path`, `url` |216| Download folder zip | `DROPBOX_DOWNLOAD_ZIP` | `path` |217| Export Paper doc | `DROPBOX_EXPORT_FILE` | `path`, `export_format` |218| Download shared link | `DROPBOX_GET_SHARED_LINK_FILE` | `url` |219| Create shared link | `DROPBOX_CREATE_SHARED_LINK` | `path`, `settings` |220| List shared links | `DROPBOX_LIST_SHARED_LINKS` | `path`, `direct_only` |221| Shared link metadata | `DROPBOX_GET_SHARED_LINK_METADATA` | `url` |222| List shared folders | `DROPBOX_LIST_SHARED_FOLDERS` | `limit` |223| Create folder | `DROPBOX_CREATE_FOLDER` | `path` |224| Create folders batch | `DROPBOX_CREATE_FOLDER_BATCH` | `paths` |225| Move file/folder | `DROPBOX_MOVE_FILE_OR_FOLDER` | `from_path`, `to_path` |226| Move batch | `DROPBOX_MOVE_BATCH` | `entries` |227| Delete file/folder | `DROPBOX_DELETE_FILE_OR_FOLDER` | `path` |228| Delete batch | `DROPBOX_DELETE_BATCH` | `entries` |229| Copy file/folder | `DROPBOX_COPY_FILE_OR_FOLDER` | `from_path`, `to_path` |230| Check batch status | `DROPBOX_CHECK_MOVE_BATCH` | `async_job_id` |231
Full transparency — inspect the skill content before installing.