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

Tool for recursive file pattern matching. More...

Inheritance diagram for entropic::GlobTool:
Collaboration diagram for entropic::GlobTool:

Public Member Functions

 GlobTool (FilesystemServer &server, const std::string &data_dir)
 Construct with server reference and data directory.
 
MCPAccessLevel required_access_level () const override
 Read-only tool — requires READ access.
 
ServerResponse execute (const std::string &args_json) override
 Find files matching a glob pattern.
 
- 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 recursive file pattern matching.

Definition at line 1020 of file filesystem.cpp.

Constructor & Destructor Documentation

◆ GlobTool()

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

Construct with server reference and data directory.

Parameters
serverOwning FilesystemServer (for root_dir).
data_dirPath to bundled data directory.

Definition at line 1029 of file filesystem.cpp.

Member Function Documentation

◆ execute()

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

Find files matching a glob pattern.

Execute glob: find files matching pattern.

Parameters
args_jsonJSON with "pattern" key.
Returns
ServerResponse with matched file paths.

Issues #13/#15 (v2.1.4): brace expansion in the pattern, ignore- matcher filtering on results.

Parameters
args_jsonJSON arguments.
Returns
ServerResponse with matched paths.

Implements entropic::ToolBase.

Definition at line 1069 of file filesystem.cpp.

◆ required_access_level()

MCPAccessLevel entropic::GlobTool::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 1041 of file filesystem.cpp.


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