API Reference
Cinder.registerIntent
Register a custom local intent matcher that can participate in resolution before fallback is considered.
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 registerIntent() when the default local planners are not enough and you want explicit app-side matching logic.
Example
ts
17 lines
Cinder.registerIntent({
id: 'open-dashboard-shortcut',
match({ normalizedInput }) {
if (normalizedInput.normalized !== 'open dashboard') {
return undefined;
}
return {
intent: 'navigate',
target: 'dashboard',
confidence: 0.95,
source: 'local',
normalizedInput,
steps: [{ type: 'navigate', target: 'dashboard' }],
};
},
});Matcher context
Your matcher receives:
inputnormalizedInputsnapshotruntimeContext
When to use it
- explicit shortcuts
- domain-specific local commands
- custom composite behavior that should stay outside the SDK core
- app-specific intent patterns that do not belong in generic planners
Safety note
Throwing custom matchers are isolated so they do not crash runtime resolution.
Related pages
Continue reading