Overview
The Box tools let you work with Box cloud storage from your flows: browse and search files, upload and download content, create and copy folders, share items via shared links or collaborators, and delete items.Key Features
BOX_LIST_FILES- List files and folders in a Box folder with a compact response (id, name, type, size, modified date).
- Inputs:
folder_id(defaults to the root folder"0"),limit(1–1000, default 100).
BOX_LIST_FOLDER_ITEMS- List files and folders in a Box folder including pagination metadata (
total_count,offset,next_marker). - Inputs:
folder_id,limit,offset(offset-based paging),markeranduse_marker_based_paging(marker-based paging),fields(comma-separated Box fields to request).
- List files and folders in a Box folder including pagination metadata (
BOX_SEARCH- Search files and folders in Box by keyword.
- Inputs:
query, optionalfile_extensions(e.g."pdf,docx"), optionalancestor_folder_idsto limit the search scope,limit(1–200, default 30).
BOX_GET_FILE_INFO- Get metadata for a Box file or folder, including shared link information when requested.
- Inputs:
item_id,item_type(fileorfolder, defaultfile),fields.
BOX_DOWNLOAD_FILE- Download a file from Box and return its content as base64, along with the file name and size.
- Inputs:
file_id. Files up to 50MB are supported.
BOX_UPLOAD_FILE- Upload a file to Box. Accepts base64 content, a data URL (
data:<mime>;base64,...), or an HTTPS URL. - Inputs:
file, optionalfilename(extracted from the file URL if omitted),folder_id(default root"0"). Returns the newfile_idandname.
- Upload a file to Box. Accepts base64 content, a data URL (
BOX_CREATE_FOLDER- Create a new folder in Box.
- Inputs:
name,parent_folder_id(default root"0").
BOX_COPY_FOLDER- Copy a folder to another location, optionally renaming it. Handles Box’s asynchronous copy by polling until completion.
- Inputs:
source_folder_id,parent_folder_id(default"0"), optionalname,wait_for_completion(defaulttrue),max_poll_attempts(0–30, default 10),poll_interval_ms(0–30000, default 1000).
BOX_ADD_COLLABORATOR- Invite a user or group as a collaborator on a Box file or folder.
- Inputs:
item_id,item_type(defaultfolder),login(email to invite) oraccessible_by_id(existing Box user/group ID),accessible_by_type(userorgroup),role(editor(default),viewer,previewer,uploader,previewer uploader,viewer uploader,co-owner),notify(defaulttrue).
BOX_CREATE_SHARED_LINK- Create a shared link for a Box file or folder.
- Inputs:
item_id,item_type(defaultfile), optionalaccess(open,company, orcollaborators), optionalpassword, optionalunshared_at(ISO date-time expiration), optionalcan_download.
BOX_DELETE_ITEM- Delete one or more Box files or folders.
- Inputs: a single
item_idwithitem_type, or multipleidswithtypes, or anitemsarray of{ "id": "...", "type": "file|folder" };recursive(defaultfalse) to delete non-empty folders. Returnsdeleted_itemsandfailed_items.
Authentication
All Box tools require a Box OAuth access token (token in the tool config, secret type BOX_OAUTH).
Go to the Jinba secrets dashboard and connect your Box account. This creates a BOX_OAUTH secret, and the platform refreshes the access token automatically when it expires. Reference the token in the tool config as shown below.
Note: Treat credentials as sensitive information and never commit them to public repositories.
Usage Examples
Example: Search for PDFs and download the first match
Example: Create a project folder, upload a file, and share it
Notes
- File size limits:
BOX_DOWNLOAD_FILEandBOX_UPLOAD_FILEsupport files up to 50MB. Larger files fail with an error (Box’s chunked upload API is not supported). - Root folder: The Box root folder always has ID
"0"; folder-related inputs default to it. - Pagination:
BOX_LIST_FILESreturns a compact list without pagination metadata (max 1000 items). UseBOX_LIST_FOLDER_ITEMSwhen you needtotal_count, offset-based paging, or marker-based paging vianext_marker. - Search limits:
BOX_SEARCHreturns at most 200 results per call. - Asynchronous folder copies: Box may process large folder copies asynchronously.
BOX_COPY_FOLDERpolls until completion (up tomax_poll_attempts); if the copy is still in progress, the result haspending: true. - Deleting folders: Non-empty folders are only deleted when
recursiveis set totrueinBOX_DELETE_ITEM. - Collaborator roles: The
ownerrole cannot be assigned viaBOX_ADD_COLLABORATOR— Box only accepts the roles listed above when creating a collaboration.