cortical_compress
Compress JSON, XML, YAML, or verbose logs losslessly and deterministically to reduce token size, with automatic format detection and compact fallback.
Instructions
Deterministically compress JSON (to lossless TOON with compact fallback), XML, or verbose logs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "cortical_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw JSON, XML, YAML, or verbose log text to compress deterministically without losing information. | |
| format | No | Input payload format hint; use auto to detect JSON, XML, YAML, or logs automatically. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compressed | Yes | ||
| saving_pct | No | ||
| format_used | Yes | ||
| raw_tokens_est | No | ||
| compressed_tokens_est | No |