query_nodes
Search a codebase knowledge graph by keyword to locate relevant nodes like files, functions, classes, or services, with relevance scoring, type filters, and pagination.
Instructions
Search for nodes in the knowledge graph by keyword (weighted fuzzy matching).
Scoring: name (3x weight) > summary (1.5x) > tags (1x). Exact name matches get a bonus. Supports pagination via offset/limit.
Args: query: Search keyword (e.g., "authentication", "login", "PaymentService"). node_type: Filter by type: "file", "function", "class", "config", "service". Leave empty for all. limit: Max results per page (default 10). offset: Starting offset for pagination (default 0). Use with limit for paging. project: Project name. Leave empty if only one project.
Returns: List of matching nodes with id, type, name, summary, layer, and tags.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| offset | No | ||
| project | No | ||
| node_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |