get_repo_context
Retrieve relevant code chunks from an indexed repository by specifying a search query and repository path.
Instructions
Search the indexed repository for relevant code chunks.
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": {
"repo_path": "<repo_path>",
"query": "<query>"
},
"name": "get_repo_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute path to the repository | |
| query | Yes | Search query (e.g., "LSTM implementation") | |
| k | No | Number of results to return (default: 6) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||