Grep
grepSearch a specified file for a pattern and return matching lines. Use it to locate text or verify content within a file.
Instructions
This function will search for the given pattern in the specified file and return the matching lines.
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>",
"file": "<file>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| pattern | Yes |