跳到正文
TakoAPI
返回技能列表

box-cli

由 hbkwong 提供

CLI Utilities
415下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Box CLI skill for working with files, folders, metadata,.

描述

该技能的功能

Wraps the official Box CLI for file, folder, metadata, search, and Box AI operations in headless or CI environments. Uses Client Credentials Grant or JWT for authentication, not OAuth browser flows. Credentials are user-supplied and never managed by the skill.

CCG authentication works without a browser or expiring tokens, making it reliable in Railway, CI, and other non-interactive environments.

何时使用

  • Uploading generated reports to a Box folder from a CI pipeline
  • Searching Box for files matching a keyword and downloading results
  • Extracting structured data from contracts using Box AI
  • Adding metadata tags to files uploaded by automated workflows
  • Browsing and auditing folder contents on a headless server

示例工作流

输入

User asks: summarize the contract file with ID 123456789 and extract the invoice number and total

智能体
  1. 1

    Verify authentication with box users:get me

  2. 2

    Run box ai:ask --item-id 123456789 --item-type file --prompt "Summarize this document"

  3. 3

    Run box ai:extract-structured --item-id 123456789 --item-type file --schema '{"fields":[{"name":"invoice_number","type":"string"},{"name":"total","type":"number"}]}'

  4. 4

    Parse JSON output and return summary and extracted fields to user

输出

Document summary and structured data with invoice_number and total values

前置要求

  • Box Custom App with Client Credentials Grant enabled (clientID, clientSecret, enterpriseID)
  • BOX_CLIENT_ID, BOX_CLIENT_SECRET, and BOX_ENTERPRISE_ID environment variables or a box-ccg.json config file

安装

clawhub install hbkwong/box-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接