Extract Classes
cc_extract_classesExtract Python classes and functions from a file into separate text blocks for code review or documentation. Optionally write them to an output directory.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "cc_extract_classes"
}
}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 |