Find lines in the project's files
grepFinds every line that holds an exact string or matches a pattern, across the project's documents, text files and code: exact text by default, or an extended regular expression with regex. Each line comes with its § address, ending #L and the line number. At most 200 lines; folder keeps it to one folder. For finding where something is named or used.
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": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | Read the pattern as an extended regular expression. | |
| folder | No | A folder of the project, like src or research. | |
| pattern | Yes | The text to find, on one line, at most 200 characters. | |
| project | No | The project's slug, from open_project, like acme. Not needed when a § address names the project, or when the person is on one project. | |
| ignore_case | No | Match letters in either case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | ||
| files | Yes | ||
| capped | Yes |