How to get all the properties of a node?

Describe the problem/error/question

I want to get all the properties of the node. It’s like the following Manual Trigger. This is what I see in the json file from somewhere else, how do I get the information about the other nodes myself

{
        "displayName": "Manual Trigger",
        "name": "n8n-nodes-base.manualTrigger",
        "icon": "fa:mouse-pointer",
        "group": [
            "trigger"
        ],
        "version": 1,
        "description": "Runs the flow on clicking a button in n8n",
        "eventTriggerDescription": "",
        "maxNodes": 1,
        "defaults": {
            "name": "When clicking \"Execute Workflow\"",
            "color": "#909298"
        },
        "inputs": [],
        "outputs": [
            "main"
        ],
        "properties": [
            {
                "displayName": "This node is where a manual workflow execution starts. To make one, go back to the canvas and click \u2018execute workflow\u2019",
                "name": "notice",
                "type": "notice",
                "default": ""
            }
        ],
        "codex": {
            "categories": [
                "Core Nodes"
            ],
            "resources": {
                "primaryDocumentation": [
                    {
                        "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.manualworkflowtrigger/"
                    }
                ]
            }
        }
    }

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @eloik

What is the use case? You can copy every node and paste it into the text file to get the JSON. Or you can export a workflow.

Hi, @barn4k
I want to try to automate workflow generation with AI. But I need all the properties and parameters of the nodes. The copied json does not contain all the parameters of the node.

Here are all the properties of the EmailSend node that I saw in a Github repository. But I also need this full attribute for other nodes. I don’t know how they got all the properties of the node.

{
        "displayName": "Send Email",
        "name": "n8n-nodes-base.emailSend",
        "icon": "fa:envelope",
        "group": [
            "output"
        ],
        "defaultVersion": 2,
        "description": "Sends an email using SMTP protocol",
        "version": 2,
        "defaults": {
            "name": "Send Email",
            "color": "#00bb88"
        },
        "inputs": [
            "main"
        ],
        "outputs": [
            "main"
        ],
        "credentials": [
            {
                "name": "smtp",
                "required": true
            }
        ],
        "properties": [
            {
                "displayName": "Resource",
                "name": "resource",
                "type": "hidden",
                "noDataExpression": true,
                "default": "email",
                "options": [
                    {
                        "name": "Email",
                        "value": "email"
                    }
                ]
            },
            {
                "displayName": "Operation",
                "name": "operation",
                "type": "hidden",
                "noDataExpression": true,
                "default": "send",
                "options": [
                    {
                        "name": "Send",
                        "value": "send",
                        "action": "Send an Email"
                    }
                ]
            },
            {
                "displayName": "From Email",
                "name": "fromEmail",
                "type": "string",
                "default": "",
                "required": true,
                "placeholder": "[email protected]",
                "description": "Email address of the sender. You can also specify a name: Nathan Doe <[email protected]>.",
                "displayOptions": {
                    "show": {
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "To Email",
                "name": "toEmail",
                "type": "string",
                "default": "",
                "required": true,
                "placeholder": "[email protected]",
                "description": "Email address of the recipient. You can also specify a name: Nathan Doe <[email protected]>.",
                "displayOptions": {
                    "show": {
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "Subject",
                "name": "subject",
                "type": "string",
                "default": "",
                "placeholder": "My subject line",
                "description": "Subject line of the email",
                "displayOptions": {
                    "show": {
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "Email Format",
                "name": "emailFormat",
                "type": "options",
                "options": [
                    {
                        "name": "Text",
                        "value": "text"
                    },
                    {
                        "name": "HTML",
                        "value": "html"
                    },
                    {
                        "name": "Both",
                        "value": "both"
                    }
                ],
                "default": "text",
                "displayOptions": {
                    "show": {
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "Text",
                "name": "text",
                "type": "string",
                "typeOptions": {
                    "rows": 5
                },
                "default": "",
                "description": "Plain text message of email",
                "displayOptions": {
                    "show": {
                        "emailFormat": [
                            "text",
                            "both"
                        ],
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "HTML",
                "name": "html",
                "type": "string",
                "typeOptions": {
                    "rows": 5
                },
                "default": "",
                "description": "HTML text message of email",
                "displayOptions": {
                    "show": {
                        "emailFormat": [
                            "html",
                            "both"
                        ],
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            },
            {
                "displayName": "Options",
                "name": "options",
                "type": "collection",
                "placeholder": "Add Option",
                "default": {},
                "options": [
                    {
                        "displayName": "Attachments",
                        "name": "attachments",
                        "type": "string",
                        "default": "",
                        "description": "Name of the binary properties that contain data to add to email as attachment. Multiple ones can be comma-separated. Reference embedded images or other content within the body of an email message, e.g. <img src=\"cid:image_1\">"
                    },
                    {
                        "displayName": "CC Email",
                        "name": "ccEmail",
                        "type": "string",
                        "default": "",
                        "placeholder": "[email protected]",
                        "description": "Email address of CC recipient"
                    },
                    {
                        "displayName": "BCC Email",
                        "name": "bccEmail",
                        "type": "string",
                        "default": "",
                        "placeholder": "[email protected]",
                        "description": "Email address of BCC recipient"
                    },
                    {
                        "displayName": "Ignore SSL Issues",
                        "name": "allowUnauthorizedCerts",
                        "type": "boolean",
                        "default": false,
                        "description": "Whether to connect even if SSL certificate validation is not possible"
                    },
                    {
                        "displayName": "Reply To",
                        "name": "replyTo",
                        "type": "string",
                        "default": "",
                        "placeholder": "[email protected]",
                        "description": "The email address to send the reply to"
                    }
                ],
                "displayOptions": {
                    "show": {
                        "resource": [
                            "email"
                        ],
                        "operation": [
                            "send"
                        ]
                    }
                }
            }
        ],
        "codex": {
            "categories": [
                "Communication",
                "Core Nodes"
            ],
            "subcategories": {
                "Core Nodes": [
                    "Helpers"
                ]
            },
            "resources": {
                "primaryDocumentation": [
                    {
                        "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.sendemail/"
                    }
                ],
                "credentialDocumentation": [
                    {
                        "url": "https://docs.n8n.io/integrations/credentials/sendemail/"
                    }
                ]
            },
            "alias": [
                "SMTP"
            ]
        }
    },

this question has not been solved

Then you need to fetch it directly from the repo
n8n/packages/nodes-base/nodes/EmailSend/v2/send.operation.ts at master · n8n-io/n8n · GitHub

But I suppose there is no easy way of doing this.