Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::GrepTool Class Reference

Tool for regex content search across files. More...

Inheritance diagram for entropic::GrepTool:
Collaboration diagram for entropic::GrepTool:

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 ToolDefinitiondefinition () 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.
 

Detailed Description

Tool for regex content search across files.

Definition at line 1095 of file filesystem.cpp.

Constructor & Destructor Documentation

◆ GrepTool()

entropic::GrepTool::GrepTool ( FilesystemServer server,
const std::string &  data_dir 
)
inline

Construct from data directory.

Parameters
data_dirPath to bundled data directory.

Definition at line 1103 of file filesystem.cpp.

Member Function Documentation

◆ execute()

ServerResponse entropic::GrepTool::execute ( const std::string &  args_json)
overridevirtual

Search files for regex pattern matches.

Execute grep: compile regex, walk the tree, collect matches.

Parameters
args_jsonJSON with "pattern" and optional "glob" keys.
Returns
ServerResponse with match results.

Implements entropic::ToolBase.

Definition at line 1199 of file filesystem.cpp.

◆ required_access_level()

MCPAccessLevel entropic::GrepTool::required_access_level ( ) const
inlineoverridevirtual

Read-only tool — requires READ access.

Returns
MCPAccessLevel::READ. @utility
Version
1.9.4

Reimplemented from entropic::ToolBase.

Definition at line 1115 of file filesystem.cpp.


The documentation for this class was generated from the following file: