generate_patch
Convert a JSON specification of nodes and connections into a valid Pure Data patch file. Returns the complete .pd file content.
Instructions
Generate a valid Pure Data .pd file from a JSON specification of nodes and connections. The complete .pd file content is ALWAYS returned in the response — present it directly to the user. STOP after presenting the result. Do NOT run bash, ls, mkdir, cat, cp, mv, or ANY file/shell operations after this tool. For message boxes (type: 'msg'), use '\,' as a separate arg for multi-segment messages (e.g. ADSR: args: [0, '\,', 1, 10, '\,', 0.7, 100, '\,', 0, 200]). Bare commas are auto-escaped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Title comment placed at the top of the patch. | |
| nodes | Yes | List of nodes to place in the patch. | |
| connections | No | Connections between nodes. | |
| outputPath | No | Optional ABSOLUTE file path to write the .pd file. Only use if the user explicitly requests saving to a specific path. The .pd content is always returned in the response regardless. |