box_file_download_tool
Download a file from Box by ID, optionally saving it to a local path or temporary directory and returning text, image, or error content.
Instructions
Download a file from Box and optionally save it locally.
Args: file_id (str): The ID of the file to download. save_file (bool, optional): Whether to save the file locally. Defaults to False. save_path (str, optional): Path where to save the file. If not provided but save_file is True, uses a temporary directory. Defaults to None.
Returns: dict[str, Any]: For text files: content as string. For images: base64-encoded string with metadata. For unsupported files: error message. If save_file is True, includes the path where the file was saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| save_file | No | ||
| save_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||