Given a specific function, finds the most semantically similar functions in the codebase. Identify the target function by node ID or by file path and line number. Works across languages.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
uri | string | No | — | File path of the target function (used with line) |
line | number | No | — | Line number of the target function (used with uri) |
nodeId | string | No | — | Graph node ID of the target function (alternative to uri + line) |
limit | number | No | 10 | Maximum number of similar functions to return |
Provide either nodeId or both uri and line to identify the target function.
Find functions similar to the one at src/services/auth.ts line 42.
Uses uri and line to locate the function, then returns the 10 most similar functions.
Find functions similar to node abc123.
Uses nodeId for precise identification when you have a node ID from a previous query.
Show me the 5 most similar functions to processOrder in src/handlers/order.rs.
Sets limit: 5 for a concise result set.
I found a bug in validate_input at src/validators.py line 88.
Find similar functions — they might have the same bug.
Returns semantically similar validation functions that may share the same flaw.
Returns a ranked list of similar functions, each containing:
Results are sorted by similarity, highest first.
stellarion_find_duplicates for a broader codebase-wide scanstellarion_compare_symbols to do a detailed diff between the original and a similar function