fs_search_files_by_content
Search a directory for files containing specific text and return their paths. Supports recursive searches, regular expressions, case-insensitive matching, and file extension filters.
Instructions
Search dir, return paths of files containing target text.
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": {
"dir_path": "<dir_path>",
"recursive": "<recursive>",
"search_term": "<search_term>"
},
"name": "fs_search_files_by_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| charset | No | utf-8 | |
| dir_path | Yes | ||
| is_regex | No | ||
| recursive | Yes | ||
| ignore_case | No | ||
| search_term | Yes | ||
| file_extension | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||