Class FileTools
File system tools for the AI agent.
[ToolPlugin("file")]
public sealed class FileTools
- Inheritance
-
FileTools
- Inherited Members
Methods
EditFile(string, string, string)
[KernelFunction("edit_file")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public static string EditFile(string path, string oldStr, string newStr)
Parameters
Returns
ListDirectory(string?, int)
[KernelFunction("list_directory")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public static string ListDirectory(string? path = null, int maxDepth = 2)
Parameters
Returns
ReadFile(string, int?, int?)
[KernelFunction("read_file")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public static string ReadFile(string path, int? startLine = null, int? endLine = null)
Parameters
Returns
WriteFile(string, string)
[KernelFunction("write_file")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public static string WriteFile(string path, string content)