llm_compress_prompt
Reduce token usage by compressing prompts, code, logs, or stack traces with RTK Smart Compression, removing redundant whitespace and duplicate lines while preserving code semantics and returning token savings metrics.
Instructions
Compress any prompt, code block, log output, or stack trace using RTK Smart Compression to strip redundant whitespace, duplicate lines, and deep library frames while maintaining code semantics. Returns token savings metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text or code to compress. |