box_upload_file_from_content_tool
Upload text or binary content as a file to Box. Specify file name, destination folder, and optional base64 encoding for seamless file management.
Instructions
Upload content as a file to Box using the toolkit.
Args: content (str | bytes): The content to upload. Can be text or binary data. file_name (str): The name to give the file in Box. folder_id (str): The ID of the destination folder. Defaults to root ("0"). is_base64 (bool): Whether the content is base64 encoded. Defaults to False.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
file_name | Yes | ||
folder_id | No | 0 | |
is_base64 | No |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"format": "binary",
"type": "string"
}
],
"title": "Content"
},
"file_name": {
"title": "File Name",
"type": "string"
},
"folder_id": {
"default": "0",
"title": "Folder Id",
"type": "string"
},
"is_base64": {
"default": false,
"title": "Is Base64",
"type": "boolean"
}
},
"required": [
"content",
"file_name"
],
"title": "box_upload_file_from_content_toolArguments",
"type": "object"
}