n8n_search_executions
Search n8n executions by text to find matches in error payloads or full run logs. Filter by workflow, status, and limit results for targeted troubleshooting.
Instructions
Text-search recent n8n executions without paging through them one by one. Fetches each candidate with includeData=true, then greps the error payload (scope='error', default) or the full per-node run log (scope='all'). Returns matched executions with workflow context and a snippet around each hit. Snippets are raw run data with the API key redacted — with scope='all' they may still contain credentials or payload data from node outputs, so treat as sensitive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Case-insensitive text to search for (e.g. 'ECONNREFUSED'). | |
| workflowId | No | Filter to a single workflow id. Omit to scan across all workflows. | |
| status | No | Filter executions by status before searching. Default 'error'. | |
| scope | No | 'error' (default) searches only the execution error payload. 'all' also greps the full per-node run log — slower and may return raw node output in snippets. | |
| limit | No | Max executions to scan (default 50). | |
| maxMatches | No | Stop after this many matches (default 20). | |
| snippetChars | No | Context window around each match (default 160). |