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

Tool for fetching web page content by URL. More...

Inheritance diagram for entropic::WebFetchTool:
Collaboration diagram for entropic::WebFetchTool:

Public Member Functions

 WebFetchTool (ToolDefinition def)
 Construct from tool definition.
 
MCPAccessLevel required_access_level () const override
 Read-only tool — requires READ access.
 
ServerResponse execute (const std::string &args_json) override
 Fetch web page content (placeholder).
 
- 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 fetching web page content by URL.

Definition at line 33 of file web.cpp.

Constructor & Destructor Documentation

◆ WebFetchTool()

entropic::WebFetchTool::WebFetchTool ( ToolDefinition  def)
inlineexplicit

Construct from tool definition.

Parameters
defTool definition loaded from web/web_fetch.json.

Definition at line 41 of file web.cpp.

Member Function Documentation

◆ execute()

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

Fetch web page content (placeholder).

Parse fetch args and return placeholder.

Parameters
args_jsonJSON with "url" and optional "max_length".
Returns
ServerResponse with placeholder text.
Parameters
args_jsonJSON with "url" and optional "max_length".
Returns
ServerResponse with placeholder result.

Implements entropic::ToolBase.

Definition at line 71 of file web.cpp.

◆ required_access_level()

MCPAccessLevel entropic::WebFetchTool::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 50 of file web.cpp.


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