get_compressed
Reduce token count of Python or JS/TS source files by stripping function bodies while retaining signatures and contracts, and return compression stats.
Instructions
S5-compress a single source file — Python or JS/TS (signatures + dependency contracts, bodies stripped) — and return the compressed structure plus token stats (tokens_before, tokens_after, reduction_pct).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to a .py file (relative to --root or absolute). |