|
Entropic 2.14.3
Local-first agentic inference engine
|
Tool for regex content search across files. More...


Public Member Functions | |
| GrepTool (FilesystemServer &server, const std::string &data_dir) | |
| Construct from data directory. | |
| MCPAccessLevel | required_access_level () const override |
| Read-only tool — requires READ access. | |
| ServerResponse | execute (const std::string &args_json) override |
| Search files for regex pattern matches. | |
Public Member Functions inherited from entropic::ToolBase | |
| ToolBase (ToolDefinition def) | |
| Construct with a pre-built definition. | |
| const std::string & | name () const |
| Get the tool name. | |
| const ToolDefinition & | definition () const |
| Get the full tool definition. | |
| virtual std::string | anchor_key (const std::string &args_json) const |
| Generate anchor key for this tool result. | |
Additional Inherited Members | |
Protected Attributes inherited from entropic::ToolBase | |
| ToolDefinition | definition_ |
| Tool definition. | |
Tool for regex content search across files.
@dg_internal
Definition at line 1712 of file filesystem.cpp.
|
inline |
Construct from data directory.
| data_dir | Path to bundled data directory. @dg_internal |
Definition at line 1720 of file filesystem.cpp.
|
overridevirtual |
Search files for regex pattern matches.
Execute grep: compile, then search one file or walk a tree.
| args_json | JSON with "pattern" and optional "glob" keys. |
v2.14.0 (gh#173/#202/#203): declared envelope {matches, truncated, reason?, next_offset?}; limit/offset page past what used to be a silent 100-match cap; path aims at one file or directory; binary files are skipped.
| args_json | JSON with "pattern" and optional "glob" (default "*"), "path", "limit" (default 100), "offset". |
invalid_regex, not_found (no such path) or invalid_args. @req REQ-MCP-022 @req REQ-MCP-021 Implements entropic::ToolBase.
Definition at line 1881 of file filesystem.cpp.
|
inlineoverridevirtual |
Read-only tool — requires READ access.
Reimplemented from entropic::ToolBase.
Definition at line 1733 of file filesystem.cpp.