Extract Classes
cc_extract_classesExtract Python classes and functions from a file as separate text blocks for code review and documentation. Optionally save to a directory or include code blocks in the response.
Instructions
Extracts Python classes and functions from a file as separate text blocks.
Args:
path (string): Path to the Python file
output_dir (string, optional): Output directory (otherwise display only)
include_content (boolean, optional): Include pycutter-style code blocks in the response
max_chars (number, optional): Maximum response characters for included code
Useful for code review and documentation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the Python file | |
| max_chars | No | Maximum characters of included extracted content | |
| output_dir | No | Output directory | |
| include_content | No | Include extracted class/helper content in the MCP response |