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.
npx skills add WavingCatApps/freeagent-mcp-vercel --skill file-to-base64git clone --depth 1 https://github.com/WavingCatApps/freeagent-mcp-vercelWrote 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.
[](https://agentmods.dev/skills/wavingcatapps/freeagent-mcp-vercel/file-to-base64)<a href="https://agentmods.dev/skills/wavingcatapps/freeagent-mcp-vercel/file-to-base64"><img src="https://agentmods.dev/badge/skills/wavingcatapps/freeagent-mcp-vercel/file-to-base64/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.
<a href="https://agentmods.dev/skills/wavingcatapps/freeagent-mcp-vercel/file-to-base64"><img src="https://agentmods.dev/badge/skills/wavingcatapps/freeagent-mcp-vercel/file-to-base64.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.01473 |
| Opus 5 | $0.00024 | $0.00737 |
| Sonnet 5 | $0.00010 | $0.00295 |
| Haiku 4.5 | $0.00005 | $0.00147 |
Grade A, and why
file-to-base64 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.
File to Base64 Converter
This skill converts files to Base64-encoded strings and detects their MIME types, which is essential for attaching files to FreeAgent expenses, timeslips, and other API operations that require file uploads.
When to Use This Skill
Use this skill when:
- Preparing attachments for FreeAgent API calls (expenses, timeslips)
- Converting PDFs or images to Base64 format
- Detecting MIME types for file uploads
- Validating file formats and sizes for API requirements
Supported File Formats
FreeAgent Supported Formats
- PDF (
.pdf) -application/pdf - PNG (
.png) -image/png - JPEG (
.jpg,.jpeg) -image/jpeg - GIF (
.gif) -image/gif
Additional Common Formats (for reference)
- Text files (
.txt) -text/plain - Word documents (
.doc,.docx) - Excel files (
.xls,.xlsx)
File Size Limits
- FreeAgent API: Maximum 5MB per file
How to Use
1. Convert a Single File
# Read the file and convert to Base64
base64 /path/to/file.pdf
# Get MIME type from extension
# For .pdf -> application/pdf
# For .png -> image/png
# For .jpg/.jpeg -> image/jpeg
# For .gif -> image/gif
2. Check File Size
# Check file size in bytes
stat -f%z /path/to/file.pdf # macOS
stat -c%s /path/to/file.pdf # Linux
# Convert to MB for comparison
# 5MB = 5242880 bytes
3. Validate File Before Conversion
# Check if file exists and is readable
test -r /path/to/file.pdf && echo "File is readable" || echo "Cannot read file"
# Get file extension
basename /path/to/file.pdf | sed 's/.*\.//'
Example Workflow
Prepare an Attachment for FreeAgent Expense
# 1. Validate file exists
FILE_PATH="/path/to/receipt.pdf"
test -f "$FILE_PATH" || exit 1
# 2. Check file size (must be < 5MB = 5242880 bytes)
FILE_SIZE=$(stat -f%z "$FILE_PATH")
if [ $FILE_SIZE -gt 5242880 ]; then
echo "Error: File size exceeds 5MB limit"
exit 1
fi
# 3. Get filename
FILE_NAME=$(basename "$FILE_PATH")
# 4. Determine MIME type from extension
EXT="${FILE_PATH##*.}"
case "$EXT" in
pdf) MIME_TYPE="application/pdf" ;;
png) MIME_TYPE="image/png" ;;
jpg|jpeg) MIME_TYPE="image/jpeg" ;;
gif) MIME_TYPE="image/gif" ;;
*) echo "Unsupported format"; exit 1 ;;
esac
# 5. Convert to Base64
BASE64_DATA=$(base64 "$FILE_PATH")
# 6. Output in format ready for API
echo "Attachment prepared:"
echo "- file_name: $FILE_NAME"
echo "- content_type: $MIME_TYPE"
echo "- data: [Base64 string - ${#BASE64_DATA} characters]"
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.
- 11d ago First seen · 212 lines · 49 tokens per session scan A 3c8801f62b85
file-to-base64 is a skill published in the GitHub repository WavingCatApps/freeagent-mcp-vercel (10 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 1,473 once invoked, about $0.0002 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-31.
Other skills, from other repositories
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
pdf-extract-create-workflow
Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
parse-document
Convert a PDF, scan, image of a page, or office file to clean markdown through the connected Superlinked MCP edge, so the source document is not read into model context directly. Use when the user asks to read, parse, OCR, extract from, summarize, or answer questions about a document.