search_in_file
Find specific keywords within files to locate text occurrences with line numbers and positions for efficient content discovery.
Instructions
Search for a keyword within a specified file. Finds all occurrences including partial matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file to search in | |
| keyword | Yes | Keyword to search for in the file |
Input Schema (JSON Schema)
{
"properties": {
"filePath": {
"description": "Path to the file to search in",
"type": "string"
},
"keyword": {
"description": "Keyword to search for in the file",
"type": "string"
}
},
"required": [
"filePath",
"keyword"
],
"type": "object"
}