find_nodes
Find nodes in your code graph by type, name, or file pattern. Supports partial and fuzzy matching for functions, classes, modules, and routes.
Instructions
Find nodes in the graph by type, name, or file pattern.
Use this when you need to:
Find all functions in a specific file: type="FUNCTION", file="src/api.js"
Find a class by name: type="CLASS", name="UserService"
List all HTTP routes: type="http:route"
Get all modules in a directory: type="MODULE", file="services/"
Returns semantic IDs that you can pass to get_context, get_node, get_neighbors, or find_guards.
Supports partial matches on name and file. When a name filter returns no exact matches, automatically falls back to fuzzy name matching using token similarity (CamelCase/snake_case aware). Use limit/offset for pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Node type (e.g., FUNCTION, CLASS, MODULE, PROPERTY_ACCESS) | |
| name | No | Node name pattern | |
| file | No | File path pattern | |
| limit | No | Max results (default: 10, max: 500) | |
| offset | No | Skip first N results (default: 0) |