Import cycles
snapshot_cyclesDetect circular import cycles in a repository using the same resolver as the snapshot generator. Returns strongly connected components so you can find files that import each other in a loop.
Instructions
Strongly connected components in the import graph: files that import each other in a loop. Computed with the same resolver the generator uses, so a reported cycle is one the snapshot really has. Read-only.
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": "snapshot_cycles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| maxComponents | No | Cap on reported components (default 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | No | ||
| filesInCycles | No |