cos_graph_export
Export a subgraph from the coding-os knowledge graph as JSON, Mermaid, or DOT. Specify a root node, filter edge types, and set a node limit to get a targeted view.
Instructions
Export a subgraph as json | mermaid | dot.
Args:
format: Output format (json / mermaid / dot).
root_uid: Optional seed; empty walks the edge table.
edge_types: Comma-separated edge filter (empty = all).
max_nodes: Hard cap on node count.
include_spine: S3 — also include the CONTAINS ancestor chain.
mode: TASK-141 view-mode blend when no root is pinned —
auto (semantic + contains, default), containment,
dependencies, or processes.
exclude_kinds: Comma-separated noise kinds to drop. Sentinel
__default__ (default) applies the built-in noise list;
empty string disables filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| format | No | json | |
| root_uid | No | ||
| max_nodes | No | ||
| edge_types | No | ||
| exclude_kinds | No | __default__ | |
| include_spine | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |