返回顶部
t

toonTOON压缩

Compress JSON data to TOON format for ~40% context savings. Use when fetching APIs, reading JSON files, or any task outputting structured data. Pipe any output through `toon` - JSON gets compressed, non-JSON passes through unchanged.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,658
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

toon

TOON 上下文压缩

通过 toon 管道传输任何命令输出,以压缩 JSON 并节省约 40% 的令牌。

使用方法

bash

API 响应


curl -s https://api.example.com/data | toon

JSON 文件

cat data.json | toon

任何命令 - 对非 JSON 内容安全(原样通过)

some_command | toon

安装

bash

将脚本复制到 PATH


cp scripts/toon ~/.local/bin/
chmod +x ~/.local/bin/toon

需要:npx(Node.js)

示例

json
[{id:1,name:Alice},{id:2,name:Bob}]


toon
[2]{id,name}:
1,Alice
2,Bob

使用时机

  • - 始终在获取 JSON API 时使用
  • 始终在将 JSON 文件读入上下文时使用
  • 可安全用于任何输出——非 JSON 内容会原样通过

参考

  • - 格式规范:https://toonformat.dev
  • CLI:@toon-format/cli

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 toon-1776280749 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 toon-1776280749 技能

通过命令行安装

skillhub install toon-1776280749

下载

⬇ 下载 toon v1.0.0(免费)

文件大小: 1.11 KB | 发布时间: 2026-4-16 16:50

v1.0.0 最新 2026-4-16 16:50
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部