Large AI tool results now downloadable when truncated
Large AI tool results that crash browsers when opened can now be downloaded in full — the interface truncates display at 100K characters to keep things snappy, with a one-click download for the complete data.
When n8n users opened the "Show data" panel on AI workflows producing large tool results, browsers would freeze or crash entirely. The application was attempting to render unbounded JSON strings directly into the DOM, overwhelming the browser on sufficiently large outputs.
Tool result JSON exceeding 100,000 characters is now truncated automatically. A "Data truncated for display" notice appears below the preview with a Download button, letting users grab the complete output as a JSON file. The UI stays responsive regardless of how much data the AI tool produced.
This change lives in the frontend editor UI, specifically in the AI instance feature components. The fix addresses a real-world crash scenario documented in user reports where production workflows would lock up the browser tab.
View Original GitHub Description
Summary
- Truncate JSON tool results exceeding 100K characters before rendering to prevent browser crashes when clicking "Show data" on large tool call results
- Show a "Data truncated for display" notice with a Download button so users can still access the full data
Related ticket
https://www.notion.so/n8n/Clicking-Show-data-crashed-my-browser-3365b6e0c94f80de9c49ec452676fe5c