search_similar_code
Embed a query to find top-k semantically similar code chunks, returning scores and metadata such as path, kind, and line range.
Instructions
Semantic search: embed query, return top-k matching code chunks.
Each result carries score + payload (path, name, kind, line range, docstring, text).
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>"
},
"name": "search_similar_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |