find_in_file
Find literal text in a server file and return bounded, line-numbered excerpts with context to locate sections before chunked reading or exact replacement. Does not use regex or modify files.
Instructions
Find literal text in a server file and return bounded, line-numbered excerpts. Use to locate relevant sections before chunked reading or exact replacement; this is not regex search and makes no changes.
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": {
"path": "<path>",
"query": "<query>"
},
"name": "find_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the selected server filesystem, starting from its root. | |
| query | Yes | Literal text to find; regular expressions are not supported. | |
| server_id | No | Wisp server ID. Omit to use the configured WISP_SERVER_ID default. | |
| max_matches | No | Maximum matching excerpts to return. | |
| context_lines | No | Lines of context to include before and after each match. | |
| case_sensitive | No | Whether query matching should preserve letter case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||