cortex_code_search
Search code and return file:line results, filtered by language or path, to locate a function or symbol definition quickly.
Instructions
Search code with file:line results. Filters by language or path, useful for locating a function or symbol definition.
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": "cortex_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Symbol name, function name or code keyword to find | |
| top_k | No | Number of results (default 10) | |
| language | No | Filter by language/extension, e.g. go, py, ts, js | |
| path_like | No | Only match file paths containing this substring | |
| with_lines | No | Include line numbers when available |