Request MCP functions

MCP functions for managing request.

Functions

request

Generic HTTP fetch. Any absolute URL, any method. Use for external APIs, MCP servers, documentation sites — everything that isn't the Aeontel SDK (which has its own aeontel function). Returns { ok, status, contentType, text, truncated? }. Timeout 10s default (max 30s), 1 MiB body cap default (max 5 MiB).

TypeScript
request(input: { url: string; method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD"; headers?: Record<string, unknown>; body?: unknown; timeoutMs?: number; maxBytes?: number }): Promise<unknown>