Organize Imports
cc_organize_importsOrganize Python imports per PEP 8 by sorting, deduplicating, and grouping them into future, stdlib, third-party, and local sections; supports dry-run previews.
Instructions
Organizes Python imports per PEP 8: sorted, deduplicated, grouped.
Args:
path (string): Path to the Python file
dry_run (boolean): Preview only
Groups: 1) future 2) stdlib 3) third-party 4) local
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_organize_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the Python file | |
| dry_run | No | Preview only |