Graphrt

Dropbox

Account, list and search files, metadata, download to a directory, upload up to 150 MB, folders, move/copy (agents, opt-in plus a path allowlist), delete, shared and temporary links node only

Beta v0.1.0 Node.js 17 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the Dropbox API v2, acting as the signed-in user: account and space usage, list and search files, metadata, download into a directory, upload up to 150 MB, create folders, move and copy, and (workflow nodes only) delete, shared links and temporary links.

What it can do

  • Account: get_current_account, get_space_usage
  • Find: list_folder + list_folder_continue, search (search_v2) + search_continue, get_metadata
  • Content: download_file (into $DROPBOX_DOWNLOAD_DIR, up to 500 MB, returns {path, bytes, content_type}), upload_file (https URL or a local file inside $DROPBOX_UPLOAD_DIR, up to 150 MB, mode add or overwrite)
  • Write: create_folder, move, copy
  • Node only: delete, create_shared_link, list_shared_links, get_temporary_link
  • api_request: any other endpoint from a workflow node (every Dropbox endpoint is a POST, and agent tools may only send GET, so agents cannot use it)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Current account dropbox.get_current_account
  • Space usage dropbox.get_space_usage
  • List folder dropbox.list_folder
  • List folder (next page) dropbox.list_folder_continue
  • Get metadata dropbox.get_metadata
  • Search dropbox.search
  • Search (next page) dropbox.search_continue
  • Download file dropbox.download_file
  • Upload file dropbox.upload_file
  • Create folder dropbox.create_folder
Show all 17 actions
  • Move dropbox.move
  • Copy dropbox.copy
  • Delete dropbox.delete
  • Create shared link dropbox.create_shared_link
  • List shared links dropbox.list_shared_links
  • Temporary link dropbox.get_temporary_link
  • Dropbox API v2 request dropbox.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • DROPBOX_APP_KEY
    OAuth refresh-token grant (short-lived access tokens are fetched and cached)
  • DROPBOX_DOWNLOAD_DIR
    Absolute directory for download_file
  • DROPBOX_UPLOAD_DIR
    Directory upload_file may read local files from (https URLs work without it)
  • DROPBOX_TOOL_PATH_ALLOWLIST
    Comma-separated path prefixes agent tools may upload, move or copy into (e.g. /Agent,/Inbox, * = anywhere)
  • DROPBOX_TOOL_ALLOW_MOVE
    1 lets agent tools call move and copy
  • DROPBOX_APP_SECRET
  • DROPBOX_REFRESH_TOKEN
  • DROPBOX_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Dropbox.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install dropbox
workflow.yaml
- id: found
  type: dropbox.search
  query: invoice
  file_extensions: [pdf]
  max_results: 5
- id: file
  type: dropbox.download_file
  path: "{{#found.data.matches.0.metadata.metadata.path_lower#}}"
Plugins in the docs