golem-make-http-request-ts

Perform outgoing HTTP requests from TypeScript Golem agents with durable retries.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-make-http-request-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-make-http-request-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-make-http-request-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-make-http-request-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps TypeScript Golem agents make reliable outgoing HTTP requests while preserving durability and retry behavior when calls fail or return non-2xx status codes.

Core Features & Use Cases

  • Built-in fetch support in WASM: Use the standard fetch() API for outgoing requests in the Golem TypeScript runtime.
  • Robust response handling: Access status, headers, and body via text(), json(), or arrayBuffer(), with correct async patterns.
  • Durable retries for non-2xx: Prefer status-code keyed retry policies to transparently resend requests, or use atomically(...) when the retry depends on application-level logic.
  • Golem agent endpoint body mapping: Send JSON objects with parameter-name keys when calling other Golem agent endpoints.

Quick Start

Ask the agent to make an outgoing request using fetch(), then parse the response with response.json() and handle non-OK statuses with either a status-code retry policy or an atomically-wrapped status check.

Frequently Asked Questions about golem-make-http-request-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make HTTP requests from TypeScript Golem agents?

To make HTTP requests from TypeScript Golem agents, use the built-in WASM-supported fetch API for outgoing calls, then parse responses asynchronously using methods like json() or text() while preserving Golem durability.

What is the best way to handle non-2xx HTTP responses in Golem?

Handle non-2xx HTTP responses in Golem by applying status-code keyed retry policies to transparently resend failed requests, or wrap application-level status checks in atomically() for custom retry logic.

Can I use the standard fetch API for outgoing requests in WASM?

Yes, you can use the standard fetch API for outgoing requests in WASM. The Golem TypeScript runtime supports fetch natively, allowing you to perform GET, POST, PUT, and DELETE workflows safely.

How do I call other Golem agent endpoints with JSON payloads?

Call other Golem agent endpoints by sending JSON objects with parameter-name keys in the request body. This maps the JSON payload correctly for Golem endpoint execution and response handling.

Why do my Golem HTTP requests fail during response parsing?

Golem HTTP requests fail during response parsing if async patterns are skipped. Always await response parsing methods like text(), json(), or arrayBuffer() to correctly read status, headers, and body data.

Does Golem support retry strategies for failed external API calls?

Golem supports retry strategies for failed external API calls by using durability features. Configure status-code keyed retry policies for automatic resends, or use atomically() for complex application-level error checks.