upload-files

upload-files is a skill for Claude Code from AI-Riksarkivet/ra-mcp. It costs 69 tokens per session (850 once invoked), scanned A, original, Apache-2.0.

A procedure for uploading local files or attachments to a server so they receive public web addresses.

In plain words
What is it for?
Use it before sending local images or ALTO/PAGE XML files to tools that need URLs, such as handwriting transcription or document viewing.
Why use it?
Some remote tools accept only HTTP or HTTPS links, not files that exist only on your computer.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ra-mcp-tools plugin — 8 skills shipped together

Good fit Use it before sending local images or ALTO/PAGE XML files to tools that need URLs, such as handwriting transcription or document viewing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-riksarkivet/ra-mcp/upload-files
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.

Any agent
npx skills add AI-Riksarkivet/ra-mcp --skill upload-files
Clone the repo
git clone --depth 1 https://github.com/AI-Riksarkivet/ra-mcp

Made for: Claude Code.

Or install ra-mcp-tools, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upload-files

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/upload-files/github.svg)](https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/upload-files)
Your own site
<a href="https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/upload-files"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/upload-files/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upload-files

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/upload-files"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/upload-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00069 $0.00850
Opus 5 $0.00034 $0.00425
Sonnet 5 $0.00014 $0.00170
Haiku 4.5 $0.00007 $0.00085

Measured 10d ago against content hash 8eb94046e874, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

upload-files scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "https://riksarkivet-htr-demo.hf.space/gradio_api/upload" \
plugins/ra-mcp-tools/skills/upload-files/SKILL.md · 117 lines

How it starts

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

Upload Files

Upload local files or user-provided attachments (images, XML, etc.) to the Gradio server so they become publicly accessible URLs. These URLs can then be passed to tools like htr_transcribe or the document viewer.

When to use

  • User has attached images or XML files in the conversation
  • User has local file paths that need to be accessible by a remote tool
  • Any tool requires http/https URLs but you only have local data

If you already have http/https URLs (e.g. IIIF links, public image URLs), skip this skill entirely and pass them directly to the target tool.

Server URL

The upload target is the Gradio Space that backs the HTR MCP server:

https://riksarkivet-htr-demo.hf.space

Override with the HTR_SPACE_URL environment variable if set.

Upload workflow

Step 1: Save attachments to disk

If the user attached files in the conversation (not already on disk), save them first. Claude attachments are available as content in the conversation — write them to temporary files.

Step 2: Upload each file

For each file, POST to the Gradio upload endpoint:

curl -s -X POST "https://riksarkivet-htr-demo.hf.space/gradio_api/upload" \
  -F "files=@/path/to/filename.jpg"

Response is a JSON array of server paths:

["/tmp/gradio/abc123def/filename.jpg"]

Step 3: Construct public URLs

For each server path returned, construct the public URL:

https://riksarkivet-htr-demo.hf.space/gradio_api/file=/tmp/gradio/abc123def/filename.jpg

Pattern: {base_url}/gradio_api/file={server_path}

Step 4: Collect all URLs

Gather all constructed URLs before passing them to the target tool. Present the URLs to the user so they can verify the uploads succeeded.

Batch upload

You can upload multiple files in a single request:

curl -s -X POST "https://riksarkivet-htr-demo.hf.space/gradio_api/upload" \
  -F "[email protected]" \
  -F "[email protected]" \
  -F "[email protected]"

Response:

[
  "/tmp/gradio/abc123/page1.jpg",
  "/tmp/gradio/abc123/page2.jpg",
  "/tmp/gradio/abc123/page3.jpg"
]

Read the full file on GitHub · 117 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. 10d ago First seen · 117 lines · 69 tokens per session scan A 8eb94046e874

Subscribe to this mod's changes

upload-files is a skill published in the GitHub repository AI-Riksarkivet/ra-mcp (23 stars, last pushed today), licensed Apache-2.0. It adds 69 tokens to every session and 850 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

daily-briefing

Start your day with a prioritized CRM briefing — works for any monday CRM setup: pipeline, contacts, accounts, leads, or no board at all. Use when someone says 'morning briefing', 'daily brief', 'what's on my plate today', 'catch me up on my deals', 'what needs attention', 'what needs my attention', 'anything urgent…

mondaycom/mcp · 106 tokens

workspace-builder

Build a CRM workspace from scratch — describe your business and get boards, columns, and pipeline stages created in monday. Use when someone says "set up my CRM", "build me a CRM", "create CRM boards for me", "I need a new sales pipeline", "help me get started in monday", "I don't know how to set up my pipeline", or…

mondaycom/mcp · 107 tokens

meeting-to-deal

Turn meeting transcripts into deal updates — key points, commitments, and next steps posted to matching CRM deals automatically. Auto-creates contacts for new attendees. Use when someone says "log my meetings to deals", "update CRM from calls", "what did I commit to in meetings", "sync notetaker", "log this meeting"…

mondaycom/mcp · 107 tokens

forecast

Build a forecast dashboard in monday — committed, best-case, and pipeline views by close month, rendered as real dashboard widgets. Use when someone says "build me a forecast", "show me Q2 pipeline", "Salesforce-style forecast", "forecast dashboard", "commit vs best-case", "what's our number this quarter", "how are we…

mondaycom/mcp · 102 tokens

run-sequence

Manage CRM sequences end-to-end — list, create, enroll contacts, activate/deactivate, duplicate, and track performance. Use when someone says "what sequences do I have", "create a welcome sequence", "enroll this contact in a sequence", "add these leads to my nurture sequence", "deactivate the cold outreach sequence"…

mondaycom/mcp · 133 tokens

log-activity

Log calls, meetings, notes, and other activities to CRM item timelines — structured records with attendees, outcomes, and follow-ups. Use when someone says "log my call with", "add a note to the deal", "what activities happened on", "record this meeting", "update my note on", "track a call with", "log a meeting with"…

mondaycom/mcp · 111 tokens