Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + const SearchHint + const ToolDescription + const ToolName + type FileReadHistory struct + func NewFileReadHistory() *FileReadHistory + func (h *FileReadHistory) GetReadInfo(path string) (*FileReadInfo, bool) + func (h *FileReadHistory) RecordRead(path string, modTime time.Time, content string, isFullRead bool) + type FileReadInfo struct + Content string + IsFullRead bool + IsPartialView bool + ModTime time.Time + Path string + Timestamp time.Time + type GitDiff = shared.GitDiff + type StructuredPatchHunk struct + Lines []string + NewLines int + NewStart int + OldLines int + OldStart int + type Tool struct + func NewWriteTool(workingDir string) *Tool + func (w *Tool) BackfillInput(ctx context.Context, input map[string]any) map[string]any + func (w *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error) + func (w *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult + func (w *Tool) Definition() tool.Definition + func (w *Tool) Description(ctx context.Context) (string, error) + func (w *Tool) FormatResult(data any) string + func (w *Tool) GetReadHistory() *FileReadHistory + func (w *Tool) GetWorkingDir() string + func (w *Tool) IsConcurrencySafe(input map[string]any) bool + func (w *Tool) IsEnabled() bool + func (w *Tool) IsReadOnly(input map[string]any) bool + func (w *Tool) SetReadHistory(history *FileReadHistory) + func (w *Tool) SetWorkingDir(dir string) + func (w *Tool) ValidateInput(ctx context.Context, input map[string]any) (map[string]any, error)