fullscope_context
Strip comments, docstrings, types, and whitespace from code files to reduce token count for AI context reading. Preserves logic with virtual line markers for stripped content.
Instructions
Compressed file read for CONTEXT ONLY — strips comments, docstrings, types, and whitespace. Typical savings: 10-50% depending on comment density (up to 80% on heavily documented code, as low as 8% on minimal-comment code). Shows virtual line markers where content was stripped. NEVER use for files you plan to edit — comments and formatting are permanently removed from output. Use the built-in Read tool when you need to Edit a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Enable diff mode: if file was read before and changed slightly, return a compact diff instead of full re-read | |
| mode | No | For JSON files: "schema" returns keys+types only (no values), "compact" is default | |
| limit | No | Number of lines to read (optional) | |
| offset | No | Start line number (1-based, optional) | |
| file_path | Yes | Absolute path to the file |