describe
Render a code node's relationships in compact Grafema DSL notation, condensing verbose edge listings into archetype-grouped operators. Control detail depth for optimal context window usage.
Instructions
Render a node's neighborhood as compact Grafema DSL notation.
Reduces verbose edge listings to archetype-grouped visual operators: o- dependency/import
outward flow (calls, delegates, passes) < inward flow (reads, extends, receives) => persistent write (db, file, redis) x exception (throws, rejects) ~>> event/message (emits, publishes) ?| conditional guard (if, case) |= governance (governs, monitors)
Containment edges ({ }) define nesting structure.
Example output: login { o- imports bcrypt > calls UserDB.findByEmail, createToken < reads config.auth => writes session >x throws AuthError ~>> emits 'auth:login' }
Use depth to control detail: 0 = names only (children listed, no edges) 1 = edges (default — shows all relationship lines) 2 = nested + folded (compressed view — repetitive siblings collapsed) 3 = nested (exact — every node expanded, no folding)
10-30 lines vs 500+ lines of raw edge data. Ideal for LLM context windows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Semantic ID, file path, or node name to describe | |
| depth | No | Level of detail: 0=names, 1=edges (default), 2=nested+folded (compressed), 3=nested (exact, no folding) | |
| perspective | No | Archetype filter preset: "security" (write,exception), "data" (flow_out,flow_in,write), "errors" (exception), "api" (flow_out,publishes,depends), "events" (publishes) |