GetDependencyGraph
Retrieve the Observable runtime dependency graph to inspect how values depend on each other, with filters for name, direction, and depth to trace upstream dependencies and downstream dependents.
Instructions
Get the dependency graph from the Observable runtime showing how values depend on each other. Returns nodes (values) and edges (dependencies).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Focus on a specific node - shows its upstream dependencies and/or downstream dependents | |
| depth | No | Maximum depth to traverse when using "name" filter (default: unlimited) | |
| pattern | No | Filter nodes by name pattern (supports * wildcard, e.g., "chain*", "*Error") | |
| notebook | No | Target notebook (URL, path like "index" or "voronoi", or index like "0"). Optional if you've used FocusNotebook or only one notebook is connected. | |
| direction | No | When using "name" filter: "upstream" shows dependencies, "downstream" shows dependents, "both" shows all connected nodes | both |
| timeout_ms | No | Maximum time to wait in milliseconds | |
| include_anonymous | No | Include anonymous values (cell 1, cell 2, etc.) in output. These are intermediate values from cells without named exports. Default false to reduce noise. |