@seibert/n8n-debugger
v1.0.5
Published
AI-native debugging toolkit for n8n workflows - built for autonomous agents and developers. Not affiliated with n8n.io
Readme
n8n Debugger
AI-native debugging toolkit for n8n workflows. Works for both self-hosted and cloud n8n instances.
Note: This is a third-party debugging tool, not affiliated with n8n.io. For official n8n CLI commands, see n8n CLI documentation.
Installation
npm install -g @seibert/n8n-debuggerSetup
# Create a project directory
mkdir my-n8n-project && cd my-n8n-project
# Initialize (creates .env template and copies agent guidelines)
n8n-debug init
# Edit .env with your credentials, then test
n8n-debug listThe tool creates workflows/ and executions/ directories in your current working directory.
AI Agent Mode
Designed for autonomous AI debugging. When you describe a workflow problem to an AI assistant, it can:
- Search for workflows by name
- Check health and assess error patterns
- Analyze recent errors with structured data
- Pull and edit workflow JSON to fix issues
- Validate and push changes back to n8n
- Manage workflows (activate/deactivate, compare versions)
Commands
Usage:
n8n-debug init Initialize directory with guidelines and .env template
n8n-debug list List all workflows
n8n-debug search <term> Search workflows by name
n8n-debug errors <workflow-id> [limit] Show recent errors for a workflow
n8n-debug health <workflow-id> Check workflow health and execution stats
n8n-debug validate <file.json> Validate workflow JSON before pushing
n8n-debug activate <id> [<id> ...] Activate one or more workflows
n8n-debug deactivate <id> [<id> ...] Deactivate one or more workflows
n8n-debug diff <id1> <id2> Compare two workflows and show differences
n8n-debug compare-executions <wf-id> <ok> <fail> Compare successful vs failed executions
n8n-debug pull [workflow-id|all] Pull workflow(s) to local JSON files
n8n-debug pull-executions <id> [limit] Pull execution data for a workflow
n8n-debug push <file.json> Push local workflow changes to n8n
n8n-debug clean [all|workflows|executions] Remove downloaded files
n8n-debug help Show help
Flags:
--json Output in JSON format (for agent use)
Examples:
n8n-debug search "Todoist"
n8n-debug errors mp3KdoJFgCDT5ktt --json
n8n-debug validate workflows/mp3KdoJFgCDT5ktt_Workflow.json
n8n-debug activate mp3KdoJFgCDT5ktt
n8n-debug deactivate mp3KdoJFgCDT5ktt abc123def
n8n-debug compare-executions mp3KdoJFgCDT5ktt 437776 440301Workflow Development
n8n-debug search "My Workflow" # Find the workflow
n8n-debug errors <workflow-id> # See what's failing
n8n-debug pull <workflow-id> # Get the workflow
# ... edit the JSON ...
n8n-debug validate <file> # Check it's valid
n8n-debug push <file> # Deploy the fixNote: Only core workflow fields can be updated via push:
name- Workflow namenodes- Workflow nodes and their configurationconnections- Node connectionssettings- Workflow settingsstaticData- Static workflow data
Read-only fields (like active, tags, timestamps) are filtered out and must be changed in the n8n UI.
Security Notes
workflows/ and especially executions/ can include production data, credentials and PII from n8n runs. Treat those folders as sensitive artifacts and avoid syncing or uploading them to shared repos or cloud storage unless they are scrubbed.
