trw_code_search
Retrieve ranked code context from locally indexed code chunks using lexical or semantic search.
Instructions
Search local indexed code chunks.
Use when an agent has run trw_code_index_update and needs ranked code
context without reading full files.
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_root": "<repo_root>",
"query": "<query>"
},
"name": "trw_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | lexical | |
| path | No | ||
| query | Yes | ||
| top_k | No | ||
| repo_root | Yes |