@@ -22,19 +22,17 @@ Analyze file structure with semantic outline and search hints.
2222** Signature:**
2323``` python
2424def get_overview (
25- absolute_file_path : str ,
26- encoding : str = " utf-8"
25+ absolute_file_path : str
2726) -> FileOverview
2827```
2928
3029** Parameters:**
3130- `absolute_file_path` : Absolute path to the file (required)
32- - `encoding` : File encoding (default: " utf-8" )
3331
3432** Returns:** `FileOverview` object with :
3533- `line_count` : Total lines in file
3634- `file_size` : File size in bytes
37- - `encoding` : Detected or specified encoding
35+ - `encoding` : Auto - detected file encoding
3836- `has_long_lines` : True if any line exceeds 1000 characters
3937- `outline` : Hierarchical structure via Tree- sitter (if supported)
4038- `search_hints` : Suggested search patterns for exploration
@@ -58,8 +56,7 @@ def search_content(
5856 pattern: str ,
5957 max_results: int = 20 ,
6058 context_lines: int = 2 ,
61- fuzzy: bool = True ,
62- encoding: str = " utf-8"
59+ fuzzy: bool = True
6360) -> List[SearchResult]
6461```
6562
@@ -69,7 +66,6 @@ def search_content(
6966- `max_results` : Maximum number of results to return (default: 20 )
7067- `context_lines` : Number of context lines before/ after match (default: 2 )
7168- `fuzzy` : Enable fuzzy matching with similarity scoring (default: True )
72- - `encoding` : File encoding (default: " utf-8" )
7369
7470** Returns:** List of `SearchResult` objects with :
7571- `line_number` : Line where match was found
@@ -100,16 +96,14 @@ Read targeted content by line number or pattern with semantic chunking.
10096def read_content(
10197 absolute_file_path: str ,
10298 target: Union[int , str ],
103- mode: str = " lines" ,
104- encoding: str = " utf-8"
99+ mode: str = " lines"
105100) -> str
106101```
107102
108103** Parameters:**
109104- `absolute_file_path` : Absolute path to the file (required)
110105- `target` : Line number (int ) or search pattern (str ) to locate content (required)
111106- `mode` : Reading mode - " lines" , " semantic" , or " function" (default: " lines" )
112- - `encoding` : File encoding (default: " utf-8" )
113107
114108** Reading Modes:**
115109- `" lines" ` : Read specific line number or lines around pattern match
@@ -141,8 +135,7 @@ def edit_content(
141135 search_text: str ,
142136 replace_text: str ,
143137 fuzzy: bool = True ,
144- preview: bool = True ,
145- encoding: str = " utf-8"
138+ preview: bool = True
146139) -> EditResult
147140```
148141
@@ -152,7 +145,6 @@ def edit_content(
152145- `replace_text` : Replacement text (required)
153146- `fuzzy` : Enable fuzzy matching for search_text (default: True )
154147- `preview` : Show preview without making changes (default: True )
155- - `encoding` : File encoding (default: " utf-8" )
156148
157149** Returns:** `EditResult` object with :
158150- `success` : True if operation succeeded
0 commit comments