Table of Contents

Class OpenClawCompatibilityTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

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

tasks TaskTools
webSearch WebSearchTools

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

command string
cwd string
timeoutMs int?
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

Task<string>

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

path string
oldStr string
newStr string
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string

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

path string
maxDepth int
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string

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

path string
startLine int?
endLine int?
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string

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

status string
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string

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

action string
id string
title string
description string
priority string
status string
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string

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

url string
maxLength int
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

Task<string>

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

query string
count int
timeoutMs int?
summary bool
maxResultChars int?
noContext bool
noStream bool
ct CancellationToken

Returns

Task<string>

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)

Parameters

path string
content string
summary bool
maxResultChars int?
noContext bool
noStream bool

Returns

string