Install
openclaw skills install toon-jsonCompress, encode, and decode large JSON payloads into a compact, reversible TOON string to reduce token usage in LLM prompts and tool payloads. Use when you need to shrink repeated JSON in prompts ("compress this JSON", "reduce token usage", "encode JSON"), transmit structured data cheaply, or round-trip JSON reliably (encode/decode/validate). Supports schema (key dictionary) mode for additional compression.
openclaw skills install toon-jsonUse the bundled script scripts/toon_json.py to encode JSON into a compact TOON string and decode it back losslessly.
python3 scripts/toon_json.py encode < input.json
python3 scripts/toon_json.py encode --schema < input.json
python3 scripts/toon_json.py encode --schema --pretty < input.json
python3 scripts/toon_json.py decode < input.toon
python3 scripts/toon_json.py schema < input.json
--schema when:
--pretty output on encode to inspect the embedded schema.