Search files
search_files
SearchFilesTool — grep-like search across project files.
Registered as search_files via the axm.tools entry point.
SearchFilesTool
Grep-like search across project files.
Searches for literal strings or regex patterns across files within a
sandboxed project root. Supports glob-based file filtering.
Registered as search_files via axm.tools entry point.
Source code in packages/axm-edit/src/axm_edit/tools/search_files.py
| Python | |
|---|---|
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | |
name
property
Tool name used for MCP registration.
execute(*, path='.', pattern=None, is_regex=False, include=None, **kwargs)
Search for a pattern across project files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Project root directory (default "."). |
'.'
|
pattern
|
str | None
|
Search string or regex (required). |
None
|
is_regex
|
bool
|
Treat pattern as regex (default False). |
False
|
include
|
list[str] | None
|
Glob patterns to filter files (e.g. ["*.py"]). |
None
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with matches list (file, line, content), |
ToolResult
|
count, and truncated flag. |