Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + const Description + const MaxPromptPreviewLength + const SearchHint + const ToolName + type Cache = fetchcore.Cache + func DefaultCache() *Cache + type Config = fetchcore.Config + func DefaultConfig() *Config + func DefaultToolConfig() *Config + type FetchedContent = fetchcore.FetchedContent + type HTTPClient = fetchcore.HTTPClient + type Input struct + Prompt string + RenderMode string + URL string + func (i *Input) Validate() error + type Output struct + Bytes int + Code int + CodeText string + DurationMs int64 + Mode string + PersistedPath string + PersistedSize int + Result string + URL string + type RedirectInfo = fetchcore.RedirectInfo + type Tool struct + func NewTool(config *Config) *Tool + func (t *Tool) BackfillInput(ctx context.Context, input map[string]any) map[string]any + func (t *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error) + func (t *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult + func (t *Tool) Definition() tool.Definition + func (t *Tool) Description(ctx context.Context) (string, error) + func (t *Tool) FormatResult(data any) string + func (t *Tool) IsConcurrencySafe(input map[string]any) bool + func (t *Tool) IsEnabled() bool + func (t *Tool) IsReadOnly(input map[string]any) bool + func (t *Tool) PreparePermissionMatcher(ctx context.Context, input map[string]any) (func(string) bool, error) + func (t *Tool) ValidateInput(ctx context.Context, input map[string]any) (map[string]any, error)