cap_http_request

A guarded tool for sending HTTP or HTTPS requests to approved web addresses and receiving their response.

In plain words
What is it for?
It helps call approved endpoints with methods, headers, and request bodies, then return the response or save it to a device file.
Why use it?
It removes the need to build a separate network client for fetching data from a known API or downloading a file.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/espressif/esp-claw/cap_http_request
Any agent
npx skills add espressif/esp-claw --skill cap_http_request
Clone the repo
git clone --depth 1 https://github.com/espressif/esp-claw

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.00706
Opus 5 $0.00015 $0.00353
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured 2d ago against content hash 501a512552ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cap_http_request scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

components/claw_capabilities/cap_http_request/skills/cap_http_request/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTTP Request

Use this skill when the task needs a direct HTTP or HTTPS request to a known endpoint instead of search-engine results.

When to use

  • The user needs raw API or file content from a specific URL.
  • A workflow already knows the target endpoint and only needs a guarded fetch.
  • The request should stay inside the device allowlist policy.

Available capability

  • http_request: send standard HTTP requests to allowlisted domains or IPs and return status plus body text, or save the response body directly to a file.

Calling rules

  • Only call http_request when the target host is expected to be in the configured allowlist.
  • Input must be a JSON object:
{
  "url": "https://api.example.com/v1/data",
  "method": "GET",
  "headers": {
    "Authorization": "Bearer <token>"
  },
  "body": "",
  "timeout_ms": 15000,
  "max_body_bytes": 16384,
  "save_path": "/spiffs/download.bin",
  "max_file_bytes": 1048576
}
  • url is required and must start with http:// or https://.
  • method defaults to GET.
  • body is only valid for methods that accept a request body.
  • save_path is optional. When present, the response body is streamed directly to this file and is not returned in memory.
  • max_body_bytes applies only when returning the response body as text.
  • max_file_bytes is optional and applies only when save_path is present.
  • Redirects are allowed only when the redirect target also matches the allowlist.

Output shape

  • The capability returns plain text, not JSON.
  • Success format:
    • HTTP <status>
    • followed by the response body text
  • File-save success format:
    • HTTP <status>
    • Saved response body to <path> (<bytes> bytes)
  • Common error strings include:
    • Error: HTTP allowlist is empty; configure search_http_allowlist first
    • Error: host '...' is not in allowlist
    • Error: method must be GET/POST/PUT/PATCH/DELETE/HEAD
    • Error: save_path must be a non-empty string
    • Error: failed to open save_path
    • Error: http request failed (...)

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 95 lines · 29 tokens per session scan A 501a512552ea

Subscribe to this mod's changes

cap_http_request is a skill published in the GitHub repository espressif/esp-claw (2,069 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 706 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens