Dropbox Automation via Rube MCP
Automate Dropbox operations including file upload/download, search, folder management, sharing links, batch operations, and metadata retrieval through Composio's Dropbox toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Dropbox connection via with toolkit
- Always call first to get current tool schemas
Setup
Get Rube MCP: Add
as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming responds
- Call with toolkit
- If connection is not ACTIVE, follow the returned auth link to complete Dropbox OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Search for Files and Folders
When to use: User wants to find files or folders by name, content, or type
Tool sequence:
DROPBOX_SEARCH_FILE_OR_FOLDER
- Search by query string with optional path scope and filters [Required]
- - Paginate through additional results using cursor [Required if has_more]
- - Validate and get canonical path for a search result [Optional]
- - Read file content to verify it is the intended document [Optional]
Key parameters:
- : Search string (case-insensitive, 1+ non-whitespace characters)
- : Scope search to a folder (e.g., ); empty string for root
- : Filter by type (, , , , etc.)
- : Filter by extension (e.g., )
- : Set to match filenames only (not content)
- : Results per page (default 100, max 1000)
Pitfalls:
- Search returns with a when more results exist; MUST continue to avoid silently missing matches
- Maximum 10,000 matches total across all pages of search + search_continue
- returned may differ in casing from user input; always use the returned canonical path
- File content from may be returned as base64-encoded ; decode before parsing
2. Upload and Download Files
When to use: User wants to upload files to Dropbox or download files from it
Tool sequence:
- - Upload a file to a specified path [Required for upload]
- - Download/read a file from Dropbox [Required for download]
- - Download an entire folder as a zip file [Optional]
- - Save a file from a public URL directly to Dropbox [Optional]
DROPBOX_GET_SHARED_LINK_FILE
- Download a file from a shared link URL [Optional]
- - Export non-downloadable files like Dropbox Paper to markdown/HTML [Optional]
Key parameters:
- : Dropbox path (must start with , e.g., )
- : (default, fail on conflict) or for uploads
- : to auto-rename on conflict instead of failing
- : FileUploadable object with , , and for uploads
- : Public URL for
- : , , or for Paper docs
Pitfalls:
- is asynchronous and may take up to 15 minutes for large files
- folder must be under 20 GB with no single file over 4 GB and fewer than 10,000 entries
- content may be base64-encoded; check response format
- Shared link downloads via
DROPBOX_GET_SHARED_LINK_FILE
may require for protected links
3. Share Files and Manage Links
When to use: User wants to create sharing links or manage existing shared links
Tool sequence:
- - Confirm file/folder exists and get canonical path [Prerequisite]
DROPBOX_LIST_SHARED_LINKS
- Check for existing shared links to avoid duplicates [Prerequisite]
DROPBOX_CREATE_SHARED_LINK
- Create a new shared link [Required]
DROPBOX_GET_SHARED_LINK_METADATA
- Resolve a shared link URL to metadata [Optional]
DROPBOX_LIST_SHARED_FOLDERS
- List all shared folders the user has access to [Optional]
Key parameters:
- : File or folder path for link creation
- : , , or
- : or
- : ISO 8601 expiration date (e.g., )
settings.require_password
/ : Password protection
- : Boolean for download permission
- : For , set to only return direct links (not parent folder links)
Pitfalls:
DROPBOX_CREATE_SHARED_LINK
fails with 409 Conflict if a shared link already exists for the path; check with DROPBOX_LIST_SHARED_LINKS
first
- Always validate path with before creating links to avoid errors
- Reuse existing links from
DROPBOX_LIST_SHARED_LINKS
instead of creating duplicates
- is deprecated; use for newer implementations
4. Manage Folders (Create, Move, Delete)
When to use: User wants to create, move, rename, or delete files and folders
Tool sequence:
- - Create a single folder [Required for create]
DROPBOX_CREATE_FOLDER_BATCH
- Create multiple folders at once [Optional]
DROPBOX_MOVE_FILE_OR_FOLDER
- Move or rename a single file/folder [Required for move]
- - Move multiple items at once [Optional]
DROPBOX_DELETE_FILE_OR_FOLDER
- Delete a single file or folder [Required for delete]
- - Delete multiple items at once [Optional]
DROPBOX_COPY_FILE_OR_FOLDER
- Copy a file or folder to a new location [Optional]
- /
DROPBOX_CHECK_FOLDER_BATCH
- Poll async batch job status [Required for batch ops]
Key parameters:
- : Target path (must start with , case-sensitive)
- / : Source and destination for move/copy operations
- : to auto-rename on conflict
- : Array of for batch moves; array of paths for batch creates
- : Set to allow moving shared folders
- : Set if move changes ownership
Pitfalls:
- All paths are case-sensitive and must start with
- Paths must NOT end with or whitespace
- Batch operations may be asynchronous; poll with or
DROPBOX_CHECK_FOLDER_BATCH
- (v1) has "all or nothing" behavior - if any entry fails, entire batch fails
- (v2) is preferred over (v1)
- Maximum 1000 entries per batch delete/move; 10,000 paths per batch folder create
- Case-only renaming is not supported in batch move operations
5. List Folder Contents
When to use: User wants to browse or enumerate files in a Dropbox folder
Tool sequence:
DROPBOX_LIST_FILES_IN_FOLDER
- List contents of a folder [Required]
- - Alternative folder listing with deleted entries support [Optional]
- - Get details for a specific item [Optional]
Key parameters:
- : Folder path (empty string for root)
- : to list all nested contents
- : Max results per request (default/max 2000)
- : to include deleted but recoverable items
- : to get photo/video metadata
Pitfalls:
- Use empty string for root folder, not
- Recursive listings can be very large; use to control page size
- Results may paginate via cursor even with small limits
DROPBOX_LIST_FILES_IN_FOLDER
returns 409 Conflict with for incorrect paths
Common Patterns
ID Resolution
- Path-based: Most Dropbox tools use path strings (e.g., )
- ID-based: Some tools accept format (e.g.,
"id:4g0reWVRsAAAAAAAAAAAQ"
)
- Canonical path: Always use or from responses for subsequent calls
- Shared link URL: Use
DROPBOX_GET_SHARED_LINK_METADATA
to resolve URLs to paths/IDs
Pagination
Dropbox uses cursor-based pagination across most endpoints:
- Search: Follow + with (max 10,000 total matches)
- Folder listing: Follow cursor from response until no more pages
- Shared links: Follow + in
DROPBOX_LIST_SHARED_LINKS
- Batch job status: Poll with /
DROPBOX_CHECK_FOLDER_BATCH
Async Operations
Several Dropbox operations run asynchronously:
- - returns job ID; poll or set (up to 120s default)
- / - may return job ID
DROPBOX_CREATE_FOLDER_BATCH
- may return job ID
- - returns job ID
Known Pitfalls
Path Formats
- All paths must start with (except empty string for root in some endpoints)
- Paths must NOT end with or contain trailing whitespace
- Paths are case-sensitive for write operations
- from API may differ in casing from user input; always prefer API-returned paths
Rate Limits
- Dropbox API has per-endpoint rate limits; batch operations help reduce call count
- Search is limited to 10,000 total matches across all pagination
- has a 15-minute timeout for large files
File Content
- may return content as base64-encoded
- Non-downloadable files (Dropbox Paper, Google Docs) require instead
- Download URLs from shared links require proper authentication headers
Sharing
- Creating a shared link when one already exists returns a 409 Conflict error
- Always check
DROPBOX_LIST_SHARED_LINKS
before creating new links
- Shared folder access may not appear in standard path listings; use
DROPBOX_LIST_SHARED_FOLDERS
Quick Reference
| Task | Tool Slug | Key Params |
|---|
| Search files | DROPBOX_SEARCH_FILE_OR_FOLDER
| , |
| Continue search | | |
| List folder | DROPBOX_LIST_FILES_IN_FOLDER
| , , |
| List folders | | , |
| Get metadata | | |
| Read/download file | | |
| Upload file | | , , |
| Save URL to Dropbox | | , |
| Download folder zip | | |
| Export Paper doc | | , |
| Download shared link | DROPBOX_GET_SHARED_LINK_FILE
| |
| Create shared link | DROPBOX_CREATE_SHARED_LINK
| , |
| List shared links | DROPBOX_LIST_SHARED_LINKS
| , |
| Shared link metadata | DROPBOX_GET_SHARED_LINK_METADATA
| |
| List shared folders | DROPBOX_LIST_SHARED_FOLDERS
| |
| Create folder | | |
| Create folders batch | DROPBOX_CREATE_FOLDER_BATCH
| |
| Move file/folder | DROPBOX_MOVE_FILE_OR_FOLDER
| , |
| Move batch | | |
| Delete file/folder | DROPBOX_DELETE_FILE_OR_FOLDER
| |
| Delete batch | | |
| Copy file/folder | DROPBOX_COPY_FILE_OR_FOLDER
| , |
| Check batch status | | |