Versions in this module Expand all Collapse all v0 v0.99.1 Aug 17, 2026 v0.99.0 Aug 14, 2026 Changes in this version + const DefaultGlobMaxMatches + const DefaultGrepMaxMatches + const DefaultHTTPTimeout + const DefaultMaxOutput + const DefaultShellTimeout + const HardGlobMaxMatches + const HardGrepMaxMatches + const MaxFetchBytes + const MaxGrepFileBytes + const MaxGrepFilesScanned + const MaxListDirEntries + const MaxPatchBytes + const MaxPatchFiles + const MaxReadFileBytes + const MaxRunCodeBytes + const MaxWebSearchQueryBytes + const MaxWebSearchResults + const MaxWriteFileBytes + var SkipDirNames = map[string]struct + func ActiveToolNames() []string + func ClampMaxMatches(arg, defaultMax, hardMax int) int + func HeadlessToolNames(force bool) []string + func MatchPath(pattern, relativePath string) (bool, error) + func PatchFilePaths(patch string) []string + func RedirectChecker(allowLoopback bool, prev func(*http.Request, []*http.Request) error) func(*http.Request, []*http.Request) error + func RegisterAll(registry *tool.Registry, ws Workspace, executionEnv env.ExecutionEnv) error + func RegisterHeadless(registry *tool.Registry, ws Workspace, executionEnv env.ExecutionEnv, ...) ([]string, error) + func ShouldSkipDir(name string) bool + type ApplyPatchTool struct + Env env.ExecutionEnv + Workspace Workspace + func (ApplyPatchTool) Description() string + func (ApplyPatchTool) Name() string + func (ApplyPatchTool) Parameters() map[string]any + func (t ApplyPatchTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error) + type GlobFilesTool struct + Env env.ExecutionEnv + Workspace Workspace + func (GlobFilesTool) Description() string + func (GlobFilesTool) Name() string + func (GlobFilesTool) Parameters() map[string]any + func (t GlobFilesTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error) + type GrepFilesTool struct + Env env.ExecutionEnv + Workspace Workspace + func (GrepFilesTool) Description() string + func (GrepFilesTool) Name() string + func (GrepFilesTool) Parameters() map[string]any + func (t GrepFilesTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error) + type HeadlessOptions struct + Force bool + type ListDirTool struct + Env env.ExecutionEnv + Workspace Workspace + func (ListDirTool) Description() string + func (ListDirTool) Name() string + func (ListDirTool) Parameters() map[string]any + func (t ListDirTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error) + type ReadFileTool struct + Env env.ExecutionEnv + Workspace Workspace + func (ReadFileTool) Description() string + func (ReadFileTool) Name() string + func (ReadFileTool) Parameters() map[string]any + func (t ReadFileTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error) + type RunCodeTool struct + Env env.ExecutionEnv + Workspace Workspace + func (RunCodeTool) Description() string + func (RunCodeTool) Name() string + func (RunCodeTool) Parameters() map[string]any + func (t RunCodeTool) Execute(ctx context.Context, id string, args map[string]any, ...) (msg.ToolResultMessage, error) + type RunTerminalTool struct + Env env.ExecutionEnv + Workspace Workspace + func (RunTerminalTool) Description() string + func (RunTerminalTool) Name() string + func (RunTerminalTool) Parameters() map[string]any + func (t RunTerminalTool) Execute(ctx context.Context, id string, args map[string]any, ...) (msg.ToolResultMessage, error) + type WebFetchTool struct + AllowLoopback bool + HTTPClient *http.Client + MaxOutput int + func (WebFetchTool) Description() string + func (WebFetchTool) Name() string + func (WebFetchTool) Parameters() map[string]any + func (t WebFetchTool) Execute(ctx context.Context, id string, args map[string]any, ...) (msg.ToolResultMessage, error) + type WebSearchTool struct + APIKey string + BaseURL string + HTTPClient *http.Client + MaxOutput int + func (WebSearchTool) Description() string + func (WebSearchTool) Name() string + func (WebSearchTool) Parameters() map[string]any + func (t WebSearchTool) Execute(ctx context.Context, id string, args map[string]any, ...) (msg.ToolResultMessage, error) + type Workspace struct + MaxOutput int + Root string + Timeout time.Duration + WebSearchAPIKey string + func (w Workspace) ResolvePath(path string) result.Result[string, result.FileError] + func (w Workspace) TruncateOutput(text string) string + type WriteFileTool struct + Env env.ExecutionEnv + Workspace Workspace + func (WriteFileTool) Description() string + func (WriteFileTool) Name() string + func (WriteFileTool) Parameters() map[string]any + func (t WriteFileTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error)