class

Autobot::Tools::WebFetchTool

Inherits Autobot::Tools::Tool < Reference < Object

Fetch and extract readable content from a URL.

Constants

DEFAULT_MAX_CHARS = 20000
HEX_IP_PATTERN = /\b0x[0-9a-f]+/i
INTEGER_IP_PATTERN = /^\d{8,}$/
IPV6_LOOPBACK_PATTERN = /\[::1\]/
IPV6_PRIVATE_PATTERN = /\[(fc|fd)[0-9a-f]{2}:/i
Log = ::Log.for(self)
OCTAL_IP_PATTERN = /\b0[0-7]+\.\d+\.\d+\.\d+/

SSRF protection patterns for alternate IP notation

Constructors

new(max_chars : Int32 = DEFAULT_MAX_CHARS, allowed_domains : Array(String) = [] of String)
Source

Instance methods

description
Source
execute(params : Hash(String, JSON::Any)) : ToolResult
Source
name
Source
parameters
Source