Skip to content

apollo-code


apollo-code / tools/src / WebFetchTool

Class: WebFetchTool

Implements

Constructors

Constructor

new WebFetchTool(options?): WebFetchTool

Parameters

options?

WebFetchOptions = {}

Returns

WebFetchTool

Properties

description

readonly description: "Fetch public HTTP(S) text after domain permission and SSRF checks" = 'Fetch public HTTP(S) text after domain permission and SSRF checks'

Implementation of

Tool.description


inputSchema

readonly inputSchema: never = schema

Implementation of

Tool.inputSchema


name

readonly name: "WebFetch" = 'WebFetch'

Implementation of

Tool.name


parallelSafe

readonly parallelSafe: true = true

Implementation of

Tool.parallelSafe


readonly

readonly readonly: true = true

Implementation of

Tool.readonly


timeoutMs

readonly timeoutMs: number

Implementation of

Tool.timeoutMs

Methods

invoke()

invoke(input, context): Promise<ToolResult>

Parameters

input

WebFetchInput

context

ToolContext

Returns

Promise<ToolResult>

Implementation of

Tool.invoke


permissionSpec()

permissionSpec(input): object

Parameters

input

WebFetchInput

Returns

object

net

net: object

net.method

method: "GET"

net.url

url: string

Implementation of

Tool.permissionSpec