Search Indexed Code
search_codeSearch indexed code definitions and workspace files by symbol or query to return ranked matches with file paths and line numbers.
Instructions
Search indexed code definitions and workspace source files by symbol or query, returning ranked definitions with file and line numbers.
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional workspace directory to scan. | |
| type | No | Definition kind filter (function, class, const, file, or any). | any |
| query | Yes | Symbol name or code search query. | |
| namespace | No | Optional Memoria namespace. |