search_in_file
Search for a keyword inside a local text file. Returns matching lines and their line numbers.
Instructions
Search for a specified keyword within a given file. Returns the lines containing the keyword and their 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": {
"filePath": "<filePath>",
"keyword": "<keyword>"
},
"name": "search_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| keyword | Yes |