prune_file
Extract semantic interfaces, types, sanitized raises, and stubs from source files to cut token bloat for coding agents.
Instructions
Extract semantic interfaces, types, sanitized raises, and stubs from a source file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the source file | |
| depth | No | Pruning depth: 'full', 'interface', or 'nominal' | interface |
| language | No | Programming language (python, typescript, javascript, go, java) | python |
| strip_docs | No | Whether to strip docstrings entirely |