Agent

Fetch web page text

Fetch readable text from an HTTP or HTTPS URL for the assistant. Use this for documentation, advisories, release notes, or other web content allowed by the deployment network policy. Private hosts are supported on self-hosted deployments. The fetcher validates redirects, blocks protected destinations and embedded credentials, caps response size, and only returns supported text responses.

post/api/v2/agent/fetchWebPage

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (injected by MCP server)

urlstring uri required

Absolute HTTP or HTTPS URL to fetch. Private hosts are allowed on self-hosted deployments. Loopback, cloud metadata, protected deployment infrastructure, and embedded credentials are blocked.

maxBytesinteger

Maximum response bytes to read before truncating. Defaults to 100000 and is capped at 200000.

timeoutMsinteger

Request timeout in milliseconds. Defaults to 10000 and is capped at 15000.

Response

Fetched web page text

finalUrlstring required

Final URL after following safe redirects.

statusinteger required

HTTP status code returned by the final URL.

contentTypestring required

Response Content-Type header, or empty when the server did not send one.

contentstring required

Fetched textual content. HTML responses are converted to readable text before being returned.

truncatedboolean required

Whether the response was truncated at maxBytes.

bytesReadinteger required

Number of response bytes included in content before text normalization.

Changes

No recorded changes to this operation across all 1 revision of this API.