search_code
Search bounded UTF-8 source files under approved roots for exact text and return relative paths with line numbers.
Instructions
Literal UTF-8 source search; results include relative path and line.
Use for literal text search within bounded UTF-8 files under approved roots. Supply the exact search text, depth and result cap. Search results may expose sensitive lines; read-only.
The search skips protected names, hidden and system entries, and linked entries, so a missing result does not prove a file is absent.
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": {
"path": "<path>",
"text": "<text>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root directory under existing Owner read roots for literal UTF-8 content search. | |
| text | Yes | Exact UTF-8 text to search for (1 to 120 characters; no line breaks). | |
| depth | No | Maximum directory traversal depth, 0 to 12; default 8. | |
| max_results | No | Maximum matches returned, 1 to 100; default 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||