KosmoKrator

storage

Dropbox CLI for AI Agents

Use the Dropbox CLI from KosmoKrator to call Dropbox tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

17 functions 10 read 7 write Manual OAuth token auth

Dropbox CLI Setup

Dropbox can be configured headlessly with `kosmokrator integrations:configure dropbox`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure dropbox --set access_token="$DROPBOX_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor dropbox --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token DROPBOX_ACCESS_TOKEN Secret secret yes Access Token

Call Dropbox Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call dropbox.dropbox_list_folder '{
  "path": "example_path",
  "recursive": true,
  "limit": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:dropbox dropbox_list_folder '{
  "path": "example_path",
  "recursive": true,
  "limit": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs dropbox --json
kosmo integrations:docs dropbox.dropbox_list_folder --json
kosmo integrations:schema dropbox.dropbox_list_folder --json
kosmo integrations:search "Dropbox" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Dropbox.

dropbox.dropbox_list_folder

Read read

List files and folders in a Dropbox directory. Use an empty string "" for the root path. Returns entries with name, path, size, and type. Use recursive=true to list all nested content. If has_more is true in the response, use dropbox_list_folder_continue with the cursor to fetch additional results.

Parameters
path, recursive, limit

Generic CLI call

kosmo integrations:call dropbox.dropbox_list_folder '{"path":"example_path","recursive":true,"limit":1}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_list_folder '{"path":"example_path","recursive":true,"limit":1}' --json

dropbox.dropbox_list_folder_continue

Read read

Continue listing files and folders using the cursor from a previous dropbox_list_folder or dropbox_list_folder_continue call. Use this when the previous response has has_more=true.

Parameters
cursor

Generic CLI call

kosmo integrations:call dropbox.dropbox_list_folder_continue '{"cursor":"example_cursor"}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_list_folder_continue '{"cursor":"example_cursor"}' --json

dropbox.dropbox_upload_file

Write write

Upload a file to Dropbox. The file content is sent as the request body. Supports add (default), overwrite, and update write modes. The path must start with a slash (e.g., "/Documents/report.txt").

Parameters
path, content, mode, autorename, mute

Generic CLI call

kosmo integrations:call dropbox.dropbox_upload_file '{"path":"example_path","content":"example_content","mode":"example_mode","autorename":true,"mute":true}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_upload_file '{"path":"example_path","content":"example_content","mode":"example_mode","autorename":true,"mute":true}' --json

dropbox.dropbox_download_file

Read read

Download a file from Dropbox. Returns the raw file content. The path must reference a file (not a folder).

Parameters
path

Generic CLI call

kosmo integrations:call dropbox.dropbox_download_file '{"path":"example_path"}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_download_file '{"path":"example_path"}' --json

dropbox.dropbox_create_folder

Write write

Create a new folder in Dropbox at the specified path. Parent folders are created automatically. Set autorename to true to avoid conflicts with existing folders.

Parameters
path, autorename

Generic CLI call

kosmo integrations:call dropbox.dropbox_create_folder '{"path":"example_path","autorename":true}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_create_folder '{"path":"example_path","autorename":true}' --json

dropbox.dropbox_delete

Write write

Delete a file or folder at the given path in Dropbox. This action can be undone within the recovery window by restoring the file from revisions.

Parameters
path

Generic CLI call

kosmo integrations:call dropbox.dropbox_delete '{"path":"example_path"}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_delete '{"path":"example_path"}' --json

dropbox.dropbox_move

Write write

Move a file or folder to a new location in Dropbox. Both from_path and to_path are required. Set allow_shared_folder to true to move shared folders.

Parameters
from_path, to_path, autorename, allow_shared_folder

Generic CLI call

kosmo integrations:call dropbox.dropbox_move '{"from_path":"example_from_path","to_path":"example_to_path","autorename":true,"allow_shared_folder":true}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_move '{"from_path":"example_from_path","to_path":"example_to_path","autorename":true,"allow_shared_folder":true}' --json

dropbox.dropbox_copy

Write write

Copy a file or folder to a new location in Dropbox. Both from_path and to_path are required. Set allow_shared_folder to true to copy shared folders.

Parameters
from_path, to_path, autorename, allow_shared_folder

Generic CLI call

kosmo integrations:call dropbox.dropbox_copy '{"from_path":"example_from_path","to_path":"example_to_path","autorename":true,"allow_shared_folder":true}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_copy '{"from_path":"example_from_path","to_path":"example_to_path","autorename":true,"allow_shared_folder":true}' --json

dropbox.dropbox_search_files

Read read

Search for files and folders in Dropbox by name or content. Returns matching entries with metadata. Optionally filter by path or file category. If has_more is true, use dropbox_search_continue with the cursor.

Parameters
query, path, file_categories, max_results

Generic CLI call

kosmo integrations:call dropbox.dropbox_search_files '{"query":"example_query","path":"example_path","file_categories":"example_file_categories","max_results":1}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_search_files '{"query":"example_query","path":"example_path","file_categories":"example_file_categories","max_results":1}' --json

dropbox.dropbox_search_continue

Read read

Continue a search using the cursor from a previous dropbox_search_files or dropbox_search_continue call. Use when the previous response has has_more=true.

Parameters
cursor

Generic CLI call

kosmo integrations:call dropbox.dropbox_search_continue '{"cursor":"example_cursor"}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_search_continue '{"cursor":"example_cursor"}' --json

dropbox.dropbox_list_revisions

Read read

List revisions of a file in Dropbox. Returns previous versions with revision IDs that can be used with dropbox_restore to recover an earlier version.

Parameters
path, limit

Generic CLI call

kosmo integrations:call dropbox.dropbox_list_revisions '{"path":"example_path","limit":1}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_list_revisions '{"path":"example_path","limit":1}' --json

dropbox.dropbox_restore

Write write

Restore a file to a specific revision in Dropbox. Use dropbox_list_revisions to find the revision ID, then restore the file to that version.

Parameters
path, rev

Generic CLI call

kosmo integrations:call dropbox.dropbox_restore '{"path":"example_path","rev":"example_rev"}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_restore '{"path":"example_path","rev":"example_rev"}' --json

dropbox.dropbox_get_metadata

Read read

Get metadata for a file or folder in Dropbox. Returns name, path, size, modified time, and type. Optionally include media info for photos/videos or include deleted files.

Parameters
path, include_media_info, include_deleted

Generic CLI call

kosmo integrations:call dropbox.dropbox_get_metadata '{"path":"example_path","include_media_info":true,"include_deleted":true}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_get_metadata '{"path":"example_path","include_media_info":true,"include_deleted":true}' --json

dropbox.dropbox_get_current_account

Read read

Get information about the currently authenticated Dropbox account, including display name, email, account type, and usage quota.

Parameters
none

Generic CLI call

kosmo integrations:call dropbox.dropbox_get_current_account '{}' --json

Provider shortcut

kosmo integrations:dropbox dropbox_get_current_account '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

dropbox.dropbox_list_folder

List files and folders in a Dropbox directory. Use an empty string "" for the root path. Returns entries with name, path, size, and type. Use recursive=true to list all nested content. If has_more is true in the response, use dropbox_list_folder_continue with the cursor to fetch additional results.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_list_folder --json
ParameterTypeRequiredDescription
path string no Path to the folder. Use empty string "" for root, "/Photos" for the Photos folder.
recursive boolean no If true, list all nested content recursively. Default: false.
limit integer no Maximum number of entries to return per call (1-2000). Default: 1000.

dropbox.dropbox_list_folder_continue

Continue listing files and folders using the cursor from a previous dropbox_list_folder or dropbox_list_folder_continue call. Use this when the previous response has has_more=true.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_list_folder_continue --json
ParameterTypeRequiredDescription
cursor string yes The cursor returned by the previous list_folder or list_folder_continue call.

dropbox.dropbox_upload_file

Upload a file to Dropbox. The file content is sent as the request body. Supports add (default), overwrite, and update write modes. The path must start with a slash (e.g., "/Documents/report.txt").

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_upload_file --json
ParameterTypeRequiredDescription
path string yes Destination path in Dropbox, e.g. "/Documents/report.txt". Must start with a slash.
content string yes The raw file content to upload.
mode string no Write mode: "add" (default, no overwrite), "overwrite", or "update" (append to existing).
autorename boolean no If true and a file already exists, Dropbox will auto-rename. Default: false.
mute boolean no If true, suppresses notifications on the file. Default: false.

dropbox.dropbox_download_file

Download a file from Dropbox. Returns the raw file content. The path must reference a file (not a folder).

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_download_file --json
ParameterTypeRequiredDescription
path string yes Path to the file in Dropbox, e.g. "/Documents/report.txt".

dropbox.dropbox_create_folder

Create a new folder in Dropbox at the specified path. Parent folders are created automatically. Set autorename to true to avoid conflicts with existing folders.

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_create_folder --json
ParameterTypeRequiredDescription
path string yes Path for the new folder, e.g. "/Projects/NewProject".
autorename boolean no If true and a folder with the same name exists, auto-rename. Default: false.

dropbox.dropbox_delete

Delete a file or folder at the given path in Dropbox. This action can be undone within the recovery window by restoring the file from revisions.

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_delete --json
ParameterTypeRequiredDescription
path string yes Path to the file or folder to delete, e.g. "/Documents/old_report.txt".

dropbox.dropbox_move

Move a file or folder to a new location in Dropbox. Both from_path and to_path are required. Set allow_shared_folder to true to move shared folders.

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_move --json
ParameterTypeRequiredDescription
from_path string yes Current path of the file or folder, e.g. "/Documents/report.txt".
to_path string yes Destination path, e.g. "/Archive/report.txt".
autorename boolean no If true and a file exists at to_path, auto-rename. Default: false.
allow_shared_folder boolean no If true, allows moving shared folders. Default: false.

dropbox.dropbox_copy

Copy a file or folder to a new location in Dropbox. Both from_path and to_path are required. Set allow_shared_folder to true to copy shared folders.

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_copy --json
ParameterTypeRequiredDescription
from_path string yes Source path of the file or folder, e.g. "/Documents/report.txt".
to_path string yes Destination path, e.g. "/Backup/report.txt".
autorename boolean no If true and a file exists at to_path, auto-rename. Default: false.
allow_shared_folder boolean no If true, allows copying shared folders. Default: false.

dropbox.dropbox_search_files

Search for files and folders in Dropbox by name or content. Returns matching entries with metadata. Optionally filter by path or file category. If has_more is true, use dropbox_search_continue with the cursor.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_search_files --json
ParameterTypeRequiredDescription
query string yes The search query string.
path string no Optional path to scope the search, e.g. "/Documents".
file_categories array no Filter by file categories, e.g. ["document", "image"]. Possible values: document, image, pdf, spreadsheet, presentation, audio, video, folder, paper.
max_results integer no Maximum number of results to return (1-1000). Default: 100.

dropbox.dropbox_search_continue

Continue a search using the cursor from a previous dropbox_search_files or dropbox_search_continue call. Use when the previous response has has_more=true.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_search_continue --json
ParameterTypeRequiredDescription
cursor string yes The cursor returned by the previous search call.

dropbox.dropbox_list_revisions

List revisions of a file in Dropbox. Returns previous versions with revision IDs that can be used with dropbox_restore to recover an earlier version.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_list_revisions --json
ParameterTypeRequiredDescription
path string yes Path to the file, e.g. "/Documents/report.txt".
limit integer no Maximum number of revisions to return (1-100). Default: 10.

dropbox.dropbox_restore

Restore a file to a specific revision in Dropbox. Use dropbox_list_revisions to find the revision ID, then restore the file to that version.

Operation
Write write
Schema command
kosmo integrations:schema dropbox.dropbox_restore --json
ParameterTypeRequiredDescription
path string yes Path to the file to restore, e.g. "/Documents/report.txt".
rev string yes The revision ID to restore to, obtained from dropbox_list_revisions.

dropbox.dropbox_get_metadata

Get metadata for a file or folder in Dropbox. Returns name, path, size, modified time, and type. Optionally include media info for photos/videos or include deleted files.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_get_metadata --json
ParameterTypeRequiredDescription
path string yes Path to the file or folder, e.g. "/Documents/report.txt".
include_media_info boolean no If true, include media metadata (dimensions, GPS, etc.) for photos and videos. Default: false.
include_deleted boolean no If true, include deleted files in the response. Default: false.

dropbox.dropbox_get_current_account

Get information about the currently authenticated Dropbox account, including display name, email, account type, and usage quota.

Operation
Read read
Schema command
kosmo integrations:schema dropbox.dropbox_get_current_account --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.