search_code
Search literal UTF-8 source text within approved directories and return relative file paths with matching line numbers, with configurable depth and result limits.
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.
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 | |||