Rei-skills dropbox-automation
Automate Dropbox file management, sharing, search, uploads, downloads, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.
git clone https://github.com/rootcastleco/rei-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/rootcastleco/rei-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/dropbox-automation" ~/.claude/skills/rootcastleco-rei-skills-dropbox-automation && rm -rf "$T"
skills/dropbox-automation/SKILL.mdDropbox 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 toolkitRUBE_MANAGE_CONNECTIONSdropbox - Always call
first to get current tool schemasRUBE_SEARCH_TOOLS
Setup
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.
- Verify Rube MCP is available by confirming
respondsRUBE_SEARCH_TOOLS - Call
with toolkitRUBE_MANAGE_CONNECTIONSdropbox - 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:
- Search by query string with optional path scope and filters [Required]DROPBOX_SEARCH_FILE_OR_FOLDER
- Paginate through additional results using cursor [Required if has_more]DROPBOX_SEARCH_CONTINUE
- Validate and get canonical path for a search result [Optional]DROPBOX_GET_METADATA
- Read file content to verify it is the intended document [Optional]DROPBOX_READ_FILE
Key parameters:
: Search string (case-insensitive, 1+ non-whitespace characters)query
: Scope search to a folder (e.g.,options.path
); empty string for root"/Documents"
: Filter by type (options.file_categories
,"image"
,"document"
,"pdf"
, etc.)"folder"
: Filter by extension (e.g.,options.file_extensions
)["jpg", "png"]
: Setoptions.filename_only
to match filenames only (not content)true
: Results per page (default 100, max 1000)options.max_results
Pitfalls:
- Search returns
with ahas_more: true
when more results exist; MUST continue to avoid silently missing matchescursor - Maximum 10,000 matches total across all pages of search + search_continue
returnedDROPBOX_GET_METADATA
may differ in casing from user input; always use the returned canonical pathpath_display- File content from
may be returned as base64-encodedDROPBOX_READ_FILE
; decode before parsingfile_content_bytes
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]DROPBOX_UPLOAD_FILE
- Download/read a file from Dropbox [Required for download]DROPBOX_READ_FILE
- Download an entire folder as a zip file [Optional]DROPBOX_DOWNLOAD_ZIP
- Save a file from a public URL directly to Dropbox [Optional]DROPBOX_SAVE_URL
- Download a file from a shared link URL [Optional]DROPBOX_GET_SHARED_LINK_FILE
- Export non-downloadable files like Dropbox Paper to markdown/HTML [Optional]DROPBOX_EXPORT_FILE
Key parameters:
: Dropbox path (must start withpath
, e.g.,/
)"/Documents/report.pdf"
:mode
(default, fail on conflict) or"add"
for uploads"overwrite"
:autorename
to auto-rename on conflict instead of failingtrue
: FileUploadable object withcontent
,s3key
, andmimetype
for uploadsname
: Public URL forurlDROPBOX_SAVE_URL
:export_format
,"markdown"
, or"html"
for Paper docs"plain_text"
Pitfalls:
is asynchronous and may take up to 15 minutes for large filesDROPBOX_SAVE_URL
folder must be under 20 GB with no single file over 4 GB and fewer than 10,000 entriesDROPBOX_DOWNLOAD_ZIP
content may be base64-encoded; check response formatDROPBOX_READ_FILE- Shared link downloads via
may requireDROPBOX_GET_SHARED_LINK_FILE
for protected linkslink_password
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_GET_METADATA
- Check for existing shared links to avoid duplicates [Prerequisite]DROPBOX_LIST_SHARED_LINKS
- Create a new shared link [Required]DROPBOX_CREATE_SHARED_LINK
- Resolve a shared link URL to metadata [Optional]DROPBOX_GET_SHARED_LINK_METADATA
- List all shared folders the user has access to [Optional]DROPBOX_LIST_SHARED_FOLDERS
Key parameters:
: File or folder path for link creationpath
:settings.audience
,"public"
, or"team""no_one"
:settings.access
or"viewer""editor"
: ISO 8601 expiration date (e.g.,settings.expires
)"2026-12-31T23:59:59Z"
/settings.require_password
: Password protectionsettings.link_password
: Boolean for download permissionsettings.allow_download
: Fordirect_only
, setLIST_SHARED_LINKS
to only return direct links (not parent folder links)true
Pitfalls:
fails with 409 Conflict if a shared link already exists for the path; check withDROPBOX_CREATE_SHARED_LINK
firstDROPBOX_LIST_SHARED_LINKS- Always validate path with
before creating links to avoidDROPBOX_GET_METADATA
errorspath/not_found - Reuse existing links from
instead of creating duplicatesDROPBOX_LIST_SHARED_LINKS
is deprecated; userequested_visibility
for newer implementationsaudience
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
- Create multiple folders at once [Optional]DROPBOX_CREATE_FOLDER_BATCH
- Move or rename a single file/folder [Required for move]DROPBOX_MOVE_FILE_OR_FOLDER
- Move multiple items at once [Optional]DROPBOX_MOVE_BATCH
- Delete a single file or folder [Required for delete]DROPBOX_DELETE_FILE_OR_FOLDER
- Delete multiple items at once [Optional]DROPBOX_DELETE_BATCH
- Copy a file or folder to a new location [Optional]DROPBOX_COPY_FILE_OR_FOLDER
/DROPBOX_CHECK_MOVE_BATCH
- Poll async batch job status [Required for batch ops]DROPBOX_CHECK_FOLDER_BATCH
Key parameters:
: Target path (must start withpath
, case-sensitive)/
/from_path
: Source and destination for move/copy operationsto_path
:autorename
to auto-rename on conflicttrue
: Array ofentries
for batch moves; array of paths for batch creates{from_path, to_path}
: Setallow_shared_folder
to allow moving shared folderstrue
: Setallow_ownership_transfer
if move changes ownershiptrue
Pitfalls:
- All paths are case-sensitive and must start with
/ - Paths must NOT end with
or whitespace/ - Batch operations may be asynchronous; poll with
orDROPBOX_CHECK_MOVE_BATCHDROPBOX_CHECK_FOLDER_BATCH
(v1) has "all or nothing" behavior - if any entry fails, entire batch failsDROPBOX_FILES_MOVE_BATCH
(v2) is preferred overDROPBOX_MOVE_BATCH
(v1)DROPBOX_FILES_MOVE_BATCH- 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:
- List contents of a folder [Required]DROPBOX_LIST_FILES_IN_FOLDER
- Alternative folder listing with deleted entries support [Optional]DROPBOX_LIST_FOLDERS
- Get details for a specific item [Optional]DROPBOX_GET_METADATA
Key parameters:
: Folder path (empty stringpath
for root)""
:recursive
to list all nested contentstrue
: Max results per request (default/max 2000)limit
:include_deleted
to include deleted but recoverable itemstrue
:include_media_info
to get photo/video metadatatrue
Pitfalls:
- Use empty string
for root folder, not"""/" - Recursive listings can be very large; use
to control page sizelimit - Results may paginate via cursor even with small limits
returns 409 Conflict withDROPBOX_LIST_FILES_IN_FOLDER
for incorrect pathspath/not_found
Common Patterns
ID Resolution
- Path-based: Most Dropbox tools use path strings (e.g.,
)"/Documents/file.pdf" - ID-based: Some tools accept
format (e.g.,id:...
)"id:4g0reWVRsAAAAAAAAAAAQ" - Canonical path: Always use
orpath_display
frompath_lower
responses for subsequent callsDROPBOX_GET_METADATA - Shared link URL: Use
to resolve URLs to paths/IDsDROPBOX_GET_SHARED_LINK_METADATA
Pagination
Dropbox uses cursor-based pagination across most endpoints:
- Search: Follow
+has_more
withcursor
(max 10,000 total matches)DROPBOX_SEARCH_CONTINUE - Folder listing: Follow cursor from response until no more pages
- Shared links: Follow
+has_more
incursorDROPBOX_LIST_SHARED_LINKS - Batch job status: Poll with
/DROPBOX_CHECK_MOVE_BATCHDROPBOX_CHECK_FOLDER_BATCH
Async Operations
Several Dropbox operations run asynchronously:
- returns job ID; poll or setDROPBOX_SAVE_URL
(up to 120s default)wait: true
/DROPBOX_MOVE_BATCH
- may return job IDDROPBOX_FILES_MOVE_BATCH
- may return job IDDROPBOX_CREATE_FOLDER_BATCH
- returns job IDDROPBOX_DELETE_BATCH
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 pathspath_display
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 filesDROPBOX_SAVE_URL
File Content
may return content as base64-encodedDROPBOX_READ_FILEfile_content_bytes- Non-downloadable files (Dropbox Paper, Google Docs) require
insteadDROPBOX_EXPORT_FILE - 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
before creating new linksDROPBOX_LIST_SHARED_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 | | , |
| Continue search | | |
| List folder | | , , |
| List folders | | , |
| Get metadata | | |
| Read/download file | | |
| Upload file | | , , |
| Save URL to Dropbox | | , |
| Download folder zip | | |
| Export Paper doc | | , |
| Download shared link | | |
| Create shared link | | , |
| List shared links | | , |
| Shared link metadata | | |
| List shared folders | | |
| Create folder | | |
| Create folders batch | | |
| Move file/folder | | , |
| Move batch | | |
| Delete file/folder | | |
| Delete batch | | |
| Copy file/folder | | , |
| Check batch status | | |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
🏰 Rei Skills — Curated by Rootcastle Engineering & Innovation | Batuhan Ayrıbaş
Engineering Beyond Boundaries | admin@rootcastle.com