fs_search_in_file_by_content
Search a file's content for text or regex patterns, with case-insensitive option and line context to locate matches efficiently.
Instructions
Single file content search with line context.
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>",
"search_term": "<search_term>"
},
"name": "fs_search_in_file_by_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| charset | No | utf-8 | |
| is_regex | No | ||
| file_path | Yes | ||
| ignore_case | No | ||
| lines_after | No | ||
| search_term | Yes | ||
| lines_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||