Documentation
¶
Index ¶
- Constants
- func Register(registry *tool.Registry, opts ...Option) error
- type Option
- func WithAllowPrivateNetwork(allow bool) Option
- func WithAllowedDomains(domains ...string) Option
- func WithBlockedDomains(domains ...string) Option
- func WithHTTPClient(client *http.Client) Option
- func WithMaxContentChars(n int) Option
- func WithMaxResponseBytes(n int64) Option
- func WithTimeout(timeout time.Duration) Option
- func WithUserAgent(userAgent string) Option
- type Tool
Constants ¶
View Source
const (
ToolName = "web_fetch"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Tool)
func WithAllowPrivateNetwork ¶
WithAllowPrivateNetwork lifts the default block on loopback / private / link-local / unspecified / multicast destinations. Off by default — turn it on only for trusted, internal-only deployments where SSRF risk is acceptable.
func WithAllowedDomains ¶
func WithBlockedDomains ¶
func WithHTTPClient ¶
func WithMaxContentChars ¶
func WithMaxResponseBytes ¶
func WithTimeout ¶
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.