Compress file
compress_fileCompress a local text file by reading it and returning a token-reduced version with token stats, without changing the original file.
Instructions
Read a local text file (prompt, docs, logs, JSON, code) and return a compressed version with token stats. Does not modify the file.
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": {
"path": "<path>"
},
"name": "compress_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a local text file. | |
| level | No | Risk level. 'none' = whitespace/unicode only; 'very-low' = + filler, phrases, JSON/SQL minify; 'low' = + hedging, comments, dedup (recommended); 'medium' = + extractive summarization (may drop sentences). | low |