search_graph
Search a codebase knowledge graph by keyword to find relevant functions, classes, and files with source locations and relationship degrees. Use after indexing.
Instructions
Search the knowledge graph for nodes matching a query.
Performs keyword matching over node labels (function names, class names,
file names) and returns the most relevant structural nodes with their
source locations and relationship degree.
The codebase graph must be built first with index_graph.
Args:
query: Keywords to search for (e.g. "VectorStore", "auth login").
path: Absolute path to the codebase root directory.
limit: Maximum number of results to return (default 20).
Returns:
Matching nodes with kind, source location, and connectivity degree.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"path": "<path>"
},
"name": "search_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |