What is the purpose of the Execute Command Tool node in n8n?
This node allows you to run system shell commands (like bash or PowerShell) directly on the machine hosting n8n. It's essential for advanced workflow automations that require local system interactions outside of standard software Integrations.
How is the Execute Command Tool triggered within a workflow?
This node executes when the workflow runs, typically receiving data from a preceding node. It is not a starting node but rather part of the processing pipeline that is triggered by an initial workflow event.
What security considerations should I keep in mind when using this node?
Since this node executes code on the host system, security is critical. Limit access and ensure the commands are well-validated, especially when handling dynamic inputs coming from external Integrations to prevent injection risks.
Can this node pass data from a previous step to the command line?
Yes, the node uses expressions to dynamically insert data (variables or outputs from previous nodes) directly into the command arguments. This allows complex Integrations based on runtime data.
Does the Execute Command Tool act as a trigger for other nodes?
No, the Execute Command Tool is an execution node. It produces output (stdout/stderr) that can then be processed by subsequent nodes, but it cannot function as a workflow trigger itself.