跳至主要内容
小龙虾小龙虾AI
🤖

Toon

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.

下载1.3k
星标0
版本1.0.0
开发工具
安全通过

技能说明


name: toon description: 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.

TOON Context Compression

Pipe any command output through toon to compress JSON and save ~40% tokens.

Usage

# API responses
curl -s "https://api.example.com/data" | toon

# JSON files  
cat data.json | toon

# Any command - safe on non-JSON (passes through unchanged)
some_command | toon

Install

# Copy script to PATH
cp scripts/toon ~/.local/bin/
chmod +x ~/.local/bin/toon

Requires: npx (Node.js)

Example

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

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

When to Use

  • Always when fetching JSON APIs
  • Always when reading JSON files into context
  • Safe to use on any output — non-JSON passes through

Reference

如何使用「Toon」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Toon技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能