workflows/n8n/start-render.body.js

n8n HTTP request body that starts a Spatial9 immersive render over MCP.

JavaScript file, 18 lines, from the n8n workflows folder of Spatial9 Agent Skills: free, MIT licensed code for immersive audio with the Spatial9 MCP server and A2A agent. Last updated .

Raw file · View on GitHub · Download every file as a zip

{{ JSON.stringify({
  jsonrpc: "2.0",
  id: 1,
  method: "tools/call",
  params: {
    name: "create_spatial_audio",
    arguments: {
      source_url: $json["Song link"],          // a direct https link to the audio file
      media_type: "music",
      title: $json["Title"],
      style: $json["Style"] || "live_concert",
      include_binaural: true,
      // Same title = same key = same job, so a re-run never double-charges.
      idempotency_key: "n8n-" + $json["Title"].toLowerCase().replace(/[^a-z0-9]+/g, "-")
    }
  }
}) }}

More in n8n workflows