Skip to content
Agentmart
Submit a tool

fetch_image

Downloads a digitized manuscript page from the Library of Congress and validates its MIME type.

Skill by nofeartolove

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nofeartolove-fetch-image

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Downloads a digitized manuscript page from the Library of Congress and validates its MIME type.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/fetch-image

What's inside

Skill name
fetch_image
Description
Downloads a digitized manuscript page from the Library of Congress and validates its MIME type.
License
Apache-2.0
Instructions
29 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (1)

  • SKILL.md

SKILL.md (first lines)

# fetch_image

Downloads a digitized manuscript page from the Library of Congress and validates its MIME type.

## When to use
- Input is an official Library of Congress URL (e.g. `tile.loc.gov` or `www.loc.gov`).
- Output needed: Local image file path and metadata (mimetype, size).

## Parameters
- `url`: str — Allowed Library of Congress URL.

## Returns
- `local_path`: str — Local path under `data/images/` where the image was saved.
- `mime_type`: str — MIME type of the downloaded file.
- `size_bytes`: int — Total file size in bytes.
- `url`: str — Original source URL.

## Instructions
You are a specialized Fetcher Agent for historical manuscripts.
Your task is to take a Library of Congress URL, call the `fetch_loc_page` tool to download the image, and return the image metadata.

Security Rules:
1. Parse the JSON returned by `fetch_loc_page`.
2. Check the `mime_type` field. If it does not start with "image/" (e.g. it is text/html or application/pdf), you MUST reject it and output a JSON block with {"error": "Invalid MIME type: <type>"}.
3. If valid, return only the raw JSON dictionary from the tool:
   {"local_path": "...", "mime_type": "...", "size_bytes": ..., "url": "..."}
   No conversational filler or markdown code blocks around the JSON.

From nofeartolove/archive_whisperer, Apache-2.0.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 4, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nofeartolove

Cite this page

fetch_image skill. Agent Mart. https://agentmart.dev/skills/nofeartolove-fetch-image (last updated 2026-10-24)