API Reference
Cinder.getContext
Resolve and return the current normalized runtime context from the installed provider.
Need the shortest path?
Use Quick Start when you want the smallest working route → scan → graph → run flow first.
Something feels off?
Inspect scan output, graph state, active route/context, and dispatch in a practical order.
Need the full surface?
Browse all runtime methods, hooks, extension points, and lifecycle APIs.
Use getContext() when you want to inspect the current injected runtime context explicitly.
Example
ts
2 lines
const context = await Cinder.getContext();
console.log(context);What it returns
A promise that resolves to a normalized plain object.
If no provider is installed, it resolves to {}.
Why it helps
Use it for:
- debugging context injection
- verifying async provider behavior
- integration tests around context-aware commands
Related pages
Continue reading