cos_graph_resolve
Resolve natural-language queries, paths, or partial IDs to canonical UIDs. Use before other graph operations when the exact UID is unknown.
Instructions
Resolve a natural-language label, path, or partial uid to canonical uids.
Use this BEFORE other cos_graph_* tools when you don't know the exact uid. Tries: direct uid → path/qualname → FTS5 full-text → LIKE fallback.
UID scheme: code:file: · code:function::: · code:class::: code:method:::. · code:module: doc:file: · doc:heading:#: · folder:
Args: q: Natural language ("the dispatcher function"), label ("ClaudeSDKDispatcher"), path ("adapters/claude/sdk_dispatcher.py"), or qualname ("Class.method"). kinds: Comma-separated kind filter (e.g. "function,method,class"). Empty = all. top: Max results (default 10).
Returns:
JSON envelope with results (ranked list of {uid, kind, label, …}) and
strategy (which resolution path matched).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| top | No | ||
| kinds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |