Class OpenClawCompatibilityTools
OpenClaw-compatible tool aliases and shared envelope parameters.
[ToolPlugin("openclaw", RequiresInjection = true)]
public sealed class OpenClawCompatibilityTools
- Inheritance
-
OpenClawCompatibilityTools
- Inherited Members
Constructors
OpenClawCompatibilityTools(TaskTools, WebSearchTools)
public OpenClawCompatibilityTools(TaskTools tasks, WebSearchTools webSearch)
Parameters
tasksTaskToolswebSearchWebSearchTools
Methods
BashAsync(string, string?, int?, bool, int?, bool, bool)
[KernelFunction("bash")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public Task<string> BashAsync(string command, string? cwd = null, int? timeoutMs = null, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
commandstringcwdstringtimeoutMsint?summaryboolmaxResultCharsint?noContextboolnoStreambool
Returns
Edit(string, string, string, bool, int?, bool, bool)
[KernelFunction("edit")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string Edit(string path, string oldStr, string newStr, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
pathstringoldStrstringnewStrstringsummaryboolmaxResultCharsint?noContextboolnoStreambool
Returns
Ls(string?, int, bool, int?, bool, bool)
[KernelFunction("ls")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string Ls(string? path = null, int maxDepth = 2, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
Returns
Read(string, int?, int?, bool, int?, bool, bool)
[KernelFunction("read")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string Read(string path, int? startLine = null, int? endLine = null, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
pathstringstartLineint?endLineint?summaryboolmaxResultCharsint?noContextboolnoStreambool
Returns
TodoRead(string?, bool, int?, bool, bool)
[KernelFunction("todo_read")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string TodoRead(string? status = null, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
Returns
TodoWrite(string, string?, string?, string?, string, string?, bool, int?, bool, bool)
[KernelFunction("todo_write")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string TodoWrite(string action, string? id = null, string? title = null, string? description = null, string priority = "medium", string? status = null, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
actionstringidstringtitlestringdescriptionstringprioritystringstatusstringsummaryboolmaxResultCharsint?noContextboolnoStreambool
Returns
WebFetchAsync(string, int, bool, int?, bool, bool)
[KernelFunction("webfetch")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public Task<string> WebFetchAsync(string url, int maxLength = 5000, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)
Parameters
Returns
WebSearchAsync(string, int, int?, bool, int?, bool, bool, CancellationToken)
[KernelFunction("websearch")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public Task<string> WebSearchAsync(string query, int count = 5, int? timeoutMs = null, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false, CancellationToken ct = default)
Parameters
querystringcountinttimeoutMsint?summaryboolmaxResultCharsint?noContextboolnoStreamboolctCancellationToken
Returns
Write(string, string, bool, int?, bool, bool)
[KernelFunction("write")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public string Write(string path, string content, bool summary = false, int? maxResultChars = null, bool noContext = false, bool noStream = false)