Make an outbound HTTP request from the client (sUNC request)
http-requestSend real outbound HTTP requests from a Roblox client to arbitrary hosts with custom headers, methods, and bodies; returns status, headers, and body or an error.
Instructions
SENDS A REAL OUTBOUND HTTP REQUEST from the Roblox client via the executor's request({ Url, Method, Headers, Body }) (falling back to http_request, then syn.request). Unlike Roblox's HttpService this can hit arbitrary hosts and set custom headers. The response body is capped at ~100 KB. Requires one of these functions to be available. The call is type-guarded and pcall-wrapped: if none is present you get { error = 'request is not available in this executor.' }, and a transport failure returns { error }. Returns { statusCode, success, headers, body, statusMessage } or { error }. Signature: { url: string, method: any?, headers: {[string]: string}?, body: string?, threadContext: number?, timeoutMs: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Capabilities: request. Produces: structured-result. Verify with: assert-state. Safety: MUTATING; performs external network or socket I/O. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute request URL, e.g. 'https://api.example.com/v1/thing'. | |
| body | No | Optional request body (for POST/PUT/PATCH). | |
| method | No | HTTP method (default GET). | GET |
| headers | No | Optional request headers as a string->string map. | |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |