Search Code
sdlc_search_codeSearch repository text files using regex patterns with context lines and automatic secret redaction.
Instructions
Bounded regex search across repository text files with context lines and secret redaction.
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": {
"pattern": "<pattern>"
},
"name": "sdlc_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Target directory. Filesystem roots are rejected; UNC/network paths require an explicit environment override. | |
| pattern | Yes | ||
| maxFiles | No | ||
| maxResults | No | ||
| filePattern | No | Optional regex to filter relative file paths. | |
| contextLines | No | ||
| maxFileBytes | No | ||
| redactSecrets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| matchCount | No |