Skip to content

Web & HTTP Tools

Fetch web pages and make API calls

The Web & HTTP category includes 2 tools for fetching web content and making API requests with full control over authentication.

Fetch a URL and extract content as markdown, text, or HTML. This is the preferred tool for reading web content — it is fast, free, and requires no API key.

For JavaScript-heavy pages that return empty content, use the browser tools instead.

ParameterTypeRequiredDescription
urlstringYesHTTP or HTTPS URL to fetch
modestringNoExtraction mode: markdown (default), readable, or raw
max_charsintNoMax characters to return (default: 50000)

Make HTTP requests with full control over method, headers, body, and authentication. Set credential to a stored credential name for automatic auth header injection.

ParameterTypeRequiredDescription
urlstringYesURL to send the request to
methodstringNoHTTP method (default: GET)
headersobjectNoAdditional HTTP headers
bodystringNoRequest body
credentialstringNoStored credential name for auth
timeoutintNoTimeout in seconds (default: 30, max: 120)
max_bytesintNoMax response size (default: 2MB)
Use caseTool
Read an article, docs page, or blog postweb_fetch
Download and parse a web pageweb_fetch
Call a REST APIhttp_request
Send data with POST/PUT/PATCHhttp_request
Make an authenticated requesthttp_request with credential
Interact with a JavaScript-heavy SPABrowser tools

The credential parameter on http_request connects to the credential store, allowing authenticated requests without exposing secrets in tool calls.

To use it, pass the name of a stored credential:

{
"url": "https://api.example.com/data",
"method": "GET",
"credential": "my-api-key"
}

The appropriate authorization header is injected automatically based on the credential type:

Credential typeHeader format
API keyAuthorization: ApiKey <key> or custom header
Bearer tokenAuthorization: Bearer <token>
Basic authAuthorization: Basic <base64(user:pass)>
OAuthAuthorization: Bearer <access_token>

For OAuth credentials, token refresh is handled automatically when the access token expires.

http_request restricts outbound requests to private IP ranges by default to prevent server-side request forgery (SSRF):

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16
  • 127.0.0.0/8 (localhost)

This restriction means http_request can be used to access internal services running on your local network or machine. Requests to public internet addresses are allowed without restriction.