Graph
graphAnalyze code structure through dependencies, change impact, function call paths, and related nodes to identify issues like circular dependencies and unused code.
Instructions
Code graph analysis. Actions: dependencies (module deps), impact (change impact), call_path (function call path), related (related nodes), path (path between nodes), decisions (decision history), ingest (build graph), circular_dependencies, unused_code, contradictions, usages (reverse deps).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| workspace_id | No | Workspace ID (UUID). | |
| project_id | No | Project ID (UUID). | |
| node_id | No | For related/contradictions | |
| source_id | No | For path | |
| target_id | No | For path | |
| target_type | No | For usages: module|function|type|variable | |
| target | No | For dependencies/impact | |
| source | No | For call_path | |
| max_depth | No | Maximum traversal depth. | |
| include_transitive | No | Include transitive dependencies. | |
| limit | No | Maximum number of results to return. | |
| wait | No | For ingest: wait for completion |