What problem does it solve?
This Skill prevents broken workflows by teaching the correct way to handle binary files alongside JSON in n8n, especially when AI agents and MCP tool boundaries are involved.
Core Features & Use Cases
- Binary lives in $binary, not $json: avoids the common failure mode of trying to read file contents from JSON.
- Agent tool boundary workarounds: explains why binary cannot cross the agent/tool boundary and how to stage files in storage and pass keys/URLs through JSON.
- Reliable binary preservation through JSON transforms: shows how to keep binary using Merge (when nodes strip binary) for outputs like emails with attachments.
- Chat-hub image requirements: ensures generated images display by uploading to a CDN and returning a URL rather than raw binary.
- Reference-driven gotchas: consolidates practical patterns for binary basics, merge behavior, and inbound/outbound agent file flows.
Quick Start
Ask your AI agent to process an uploaded PDF by first staging the file, passing the storage key through tool calls, and returning a user-facing URL (not raw binary) for chat display.