n8n_scaffold_browser_bridge_node
Generate n8n node JSON for browser-bridge CLI calls based on platform, action, and input. Eliminates manual rediscovery of spawn/heredoc patterns for n8n workflows.
Instructions
Generate a ready-to-paste n8n node JSON that calls the browser-bridge CLI for a given (platform, action, input). Mirrors the patterns in browser-bridge's docs/n8n-usage.md so n8n workflows don't need to rediscover the spawn/heredoc shape every time. Pure local generator — no n8n API call. Default mode 'code-node' uses spawnSync with stdin JSON; 'execute-command' uses an Execute Command node with a quoted heredoc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Browser-bridge platform slug (e.g. 'coderlegion'). | |
| action | Yes | Browser-bridge action (e.g. 'scan-comments', 'draft-post'). | |
| input | No | JSON input passed on stdin to the browser-bridge call. | |
| mode | No | Which n8n node shape to emit. 'code-node' (default) handles JSON I/O via spawnSync. 'execute-command' is a heredoc shell call. | |
| bridgeDir | No | Absolute path to the browser-bridge checkout on the n8n host. Default matches docs/n8n-usage.md. | |
| nodeName | No | Override the generated node name. Default 'Browser Bridge: <platform> <action>'. | |
| position | No | n8n canvas position [x, y]. Default [0, 0]. |