find_text
Search indexed file content for literal text, comments, strings, and TODOs that symbol search misses; returns matching lines with optional surrounding context.
Instructions
Full-text search across indexed file content. Finds comments, strings, TODOs, and literal text that symbol search misses. Returns matching lines with optional surrounding context.
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": "find_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Filter to a specific repository (as shown in list_repos) | |
| query | Yes | Search query (name, keyword, or description) | |
| max_results | No | Maximum results to return | |
| file_pattern | No | Glob pattern to filter by file path (e.g., 'src/**/*.py') | |
| context_lines | No | Number of surrounding lines to include |