SuperAPI AI 工具集

omnicell

通用与其它

查看项目

更新于 10-16 05:46

技能介绍

用途:OmniCell 把操作系统转化为结构化数据源,让系统命令的输出以 JSON 对象形式返回,避免解析 stdout 原始文本。适用于执行系统命令、运行 Nushell 脚本、查询系统状态以及进行操作系统交互。

主要能力:核心工具为 nuShell,是通用 shell 工具,可用于任意终端命令。参数 command 接收任意终端命令并自动判断是观察(observe)还是变更(mutate);intent 可显式强制 observe 或 mutate;chunked 默认 false,用于超大输出的分块传输;action 可选 start 或 batch;session_id 在 action=batch 时必填;batch_index 默认 0,为 batch 的批次索引;batch_size 默认 28000,为每批字符窗口。

使用方式:调用示例为 <tool_call>{"name": "omniCell.nuShell", "arguments": {"command": "cargo test"}}</tool_call>。分块模式示例:<tool_call>{"name":"omniCell.nuShell","arguments":{"command":"ls **/*","chunked":true}}</tool_call>,随后用 <tool_call>{"name":"omniCell.nuShell","arguments":{"action":"batch","session_id":"abc123","batch_index":1}}</tool_call> 读取各批次。

最佳实践:优先使用 open 而非 cat,OmniCell 会自动把 JSON、YAML、TOML、XML、CSV 解析为 Python 字典;用 Nu 管道(|)在数据进入 LLM 上下文前过滤,例如用 ls */ | where size > 1mb | to json 替代 ls -R;超大结果建议 chunked=true 并读取所有 batch_index,而非截断内容。

限制:资料未提供收费、价格、平台支持范围及具体性能数据,暂未提供。