find_import_cycles
Detect import cycles in a project's file-level import graph to find strongly-connected components that cause circular dependencies. Limit results with max_cycles for focused analysis.
Instructions
Detect import cycles (strongly-connected components) in the file-level import graph (Tarjan's).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_import_cycles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name/path (default: active). | |
| max_cycles | No | Maximum number of cycles to return (default 20, 0 = unlimited). |