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

Tool: git diff [–staged] [file]. More...

Inheritance diagram for entropic::GitDiffTool:
Collaboration diagram for entropic::GitDiffTool:

Public Member Functions

 GitDiffTool (ToolDefinition def, GitServer &server)
 Construct with definition and server ref.
 
MCPAccessLevel required_access_level () const override
 Read-only tool — requires READ access.
 
ServerResponse execute (const std::string &args_json) override
 Run git diff with optional flags.
 
- 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: git diff [–staged] [file].

Definition at line 130 of file git.cpp.

Constructor & Destructor Documentation

◆ GitDiffTool()

entropic::GitDiffTool::GitDiffTool ( ToolDefinition  def,
GitServer server 
)
inline

Construct with definition and server ref.

Parameters
defTool definition.
serverOwning GitServer.

Definition at line 139 of file git.cpp.

Member Function Documentation

◆ execute()

ServerResponse entropic::GitDiffTool::execute ( const std::string &  args_json)
inlineoverridevirtual

Run git diff with optional flags.

Parameters
args_jsonJSON with optional "staged" and "file".
Returns
ServerResponse with diff output.

Implements entropic::ToolBase.

Definition at line 159 of file git.cpp.

◆ required_access_level()

MCPAccessLevel entropic::GitDiffTool::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 148 of file git.cpp.


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