Format code for automation platforms
format_codeFormat and lint JavaScript, Python, or HubL code for Zapier, n8n, Pipedream, Make, or HubSpot. Wraps the source in each platform's runtime shell before formatting so top-level await, bare return, and injected globals don't break the formatter. Returns formatted code plus lint diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code to format (≤50KB). | |
| language | No | Defaults to javascript. zapier, n8n, pipedream, make, and hubspot support python; hubl does not. | |
| platform | Yes | Target automation platform. |