webfetch

package
v5.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package webfetch provides Floret's secure public-text URL fetch tool.

Index

Constants

View Source
const (
	ToolName = "web_fetch"
)

Variables

This section is empty.

Functions

func New

func New(options Options) tools.Tool

New returns a secure web_fetch tool. The default permission is ask because the tool is open-world; hosts may resolve a narrower per-invocation policy through Options.PermissionFor.

Types

type Options

type Options struct {
	Permission                tools.PermissionSpec
	PermissionFor             tools.PermissionResolver
	AllowResolvedBenchmarkIPs bool
}

Options configures host-owned permission policy and the narrowly scoped transparent-proxy compatibility exception. Network limits are fixed so the provider cannot weaken them through tool arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL