search_file
Find keywords in files by specifying a file path and keyword, returning matching lines with line numbers.
Instructions
Search for a keyword within a file and return all matching lines with line numbers
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": {
"file_path": "<file_path>",
"keyword": "<keyword>"
},
"name": "search_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | The keyword to search for | |
| file_path | Yes | The path to the file to search | |
| case_sensitive | No | Whether the search should be case-sensitive (default: false) |