|
Entropic 2.3.8
Local-first agentic inference engine
|
Tool for writing file contents with read-before-write. More...


Public Member Functions | |
| WriteFileTool (FilesystemServer &server, const std::string &data_dir) | |
| Construct from server reference and data directory. | |
| ServerResponse | execute (const std::string &args_json) override |
| Write content to a file after read-before-write check. | |
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. | |
| virtual MCPAccessLevel | required_access_level () const |
| Minimum access level required to execute this tool. | |
Additional Inherited Members | |
Protected Attributes inherited from entropic::ToolBase | |
| ToolDefinition | definition_ |
| Tool definition. | |
Tool for writing file contents with read-before-write.
Definition at line 890 of file filesystem.cpp.
|
inline |
Construct from server reference and data directory.
| server | Owning filesystem server. |
| data_dir | Path to bundled data directory. |
Definition at line 899 of file filesystem.cpp.
|
overridevirtual |
Write content to a file after read-before-write check.
Execute write_file: resolve, enforce policy, write.
| args_json | JSON with "path" and "content" keys. |
| args_json | JSON arguments. |
Implements entropic::ToolBase.
Definition at line 926 of file filesystem.cpp.