webfetch

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package webfetch provides a bounded, SSRF-resistant WebFetch reference tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

Tool retrieves bounded public textual resources without browser execution.

func New

func New() Tool

New constructs a Tool with the production network policy.

func (Tool) Execute

Execute fetches, converts, bounds, and quarantines one public textual resource.

func (Tool) ReadOnly

func (Tool) ReadOnly() bool

ReadOnly reports that WebFetch performs an outward read and no workspace mutation.

func (Tool) Spec

func (Tool) Spec() tool.ToolSpec

Spec returns the model-facing WebFetch contract.

Jump to

Keyboard shortcuts

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